summaryrefslogtreecommitdiff
path: root/drivers/clk/zynqmp/clkc.c
diff options
context:
space:
mode:
authorShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>2021-08-18 09:59:27 +0300
committerStephen Boyd <sboyd@kernel.org>2021-08-29 07:26:04 +0300
commit47d0fbd1cd42d5458c05a7244f7fa3384557b6cc (patch)
tree9dfa78fbb9dd4e78db420c8b350f686cc8e3b7af /drivers/clk/zynqmp/clkc.c
parente73f0f0ee7541171d89f2e2491130c7771ba58d3 (diff)
downloadlinux-47d0fbd1cd42d5458c05a7244f7fa3384557b6cc.tar.xz
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>
Diffstat (limited to 'drivers/clk/zynqmp/clkc.c')
-rw-r--r--drivers/clk/zynqmp/clkc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/clk/zynqmp/clkc.c b/drivers/clk/zynqmp/clkc.c
index 871184e406e1..eb25303eefed 100644
--- a/drivers/clk/zynqmp/clkc.c
+++ b/drivers/clk/zynqmp/clkc.c
@@ -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)