Skip to content

Commit 47d0fbd

Browse files
Shubhrajyoti Dattabebarino
authored andcommitted
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: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com> Link: https://lore.kernel.org/r/20210818065929.12835-2-shubhrajyoti.datta@xilinx.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent e73f0f0 commit 47d0fbd

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/clk/zynqmp/clkc.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -762,9 +762,7 @@ static int zynqmp_clk_setup(struct device_node *np)
762762
zynqmp_register_clocks(np);
763763

764764
zynqmp_data->num = clock_max_idx;
765-
of_clk_add_hw_provider(np, of_clk_hw_onecell_get, zynqmp_data);
766-
767-
return 0;
765+
return of_clk_add_hw_provider(np, of_clk_hw_onecell_get, zynqmp_data);
768766
}
769767

770768
static int zynqmp_clock_probe(struct platform_device *pdev)

0 commit comments

Comments
 (0)