Skip to content

Commit

Permalink
clk: zynqmp: Check the return type
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shubhrajyoti Datta authored and Stephen Boyd committed Aug 29, 2021
1 parent e73f0f0 commit 47d0fbd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/clk/zynqmp/clkc.c
Original file line number Diff line number Diff line change
Expand Up @@ -762,9 +762,7 @@ static int zynqmp_clk_setup(struct device_node *np)
zynqmp_register_clocks(np);

zynqmp_data->num = clock_max_idx;
of_clk_add_hw_provider(np, of_clk_hw_onecell_get, zynqmp_data);

return 0;
return of_clk_add_hw_provider(np, of_clk_hw_onecell_get, zynqmp_data);
}

static int zynqmp_clock_probe(struct platform_device *pdev)
Expand Down

0 comments on commit 47d0fbd

Please sign in to comment.