Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: axis: Use new macro CLK_OF_DECLARE_DRIVER

This driver initializes a clock provider via of_artpec6_clkctrl_setup
and then continues the initialization on artpec6_clkctrl_probe.

Use the new macro to notify the clk subsystem about this behaviour.

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

authored by

Ricardo Ribalda Delgado and committed by
Stephen Boyd
aa8d7122 c7296c51

+2 -2
+2 -2
drivers/clk/axis/clk-artpec6.c
··· 113 113 of_clk_add_provider(np, of_clk_src_onecell_get, &clkdata->clk_data); 114 114 } 115 115 116 - CLK_OF_DECLARE(artpec6_clkctrl, "axis,artpec6-clkctrl", 117 - of_artpec6_clkctrl_setup); 116 + CLK_OF_DECLARE_DRIVER(artpec6_clkctrl, "axis,artpec6-clkctrl", 117 + of_artpec6_clkctrl_setup); 118 118 119 119 static int artpec6_clkctrl_probe(struct platform_device *pdev) 120 120 {