Commit 47d0fbd1 authored by Shubhrajyoti Datta's avatar Shubhrajyoti Datta Committed by Stephen Boyd

clk: zynqmp: Check the return type

Currently the return value of of_clk_add_hw_provider is ignored.
lets check and return value.
Signed-off-by: default avatarShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Link: https://lore.kernel.org/r/20210818065929.12835-2-shubhrajyoti.datta@xilinx.comSigned-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent e73f0f0e
...@@ -762,9 +762,7 @@ static int zynqmp_clk_setup(struct device_node *np) ...@@ -762,9 +762,7 @@ static int zynqmp_clk_setup(struct device_node *np)
zynqmp_register_clocks(np); zynqmp_register_clocks(np);
zynqmp_data->num = clock_max_idx; zynqmp_data->num = clock_max_idx;
of_clk_add_hw_provider(np, of_clk_hw_onecell_get, zynqmp_data); return of_clk_add_hw_provider(np, of_clk_hw_onecell_get, zynqmp_data);
return 0;
} }
static int zynqmp_clock_probe(struct platform_device *pdev) static int zynqmp_clock_probe(struct platform_device *pdev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment