diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-06-20 22:47:53 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-07-12 11:24:07 +0200 |
commit | 269f1aac1410d27959bd073a089eb85eed55c8a1 (patch) | |
tree | 506d36e2a45b5720d1761c3f1a8d707ecc7ab02f /drivers/clk/ux500/u9540_clk.c | |
parent | 1e6cbc0691abc6b1a053f98d8ce1d692c8c71501 (diff) | |
download | op-kernel-dev-269f1aac1410d27959bd073a089eb85eed55c8a1.zip op-kernel-dev-269f1aac1410d27959bd073a089eb85eed55c8a1.tar.gz |
ARM: ux500: use CLK_OF_DECLARE()
The ux500 DT support predates the CLK_OF_DECLARE macro and calls
directly into the clk driver from platform code.
Converting this to CLK_OF_DECLARE makes the code much nicer and
similar to how modern platforms do it today. It also removes the
last user of cpu_is_u8500_family() etc.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/clk/ux500/u9540_clk.c')
-rw-r--r-- | drivers/clk/ux500/u9540_clk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/ux500/u9540_clk.c b/drivers/clk/ux500/u9540_clk.c index 2138a4c..7b6bca4 100644 --- a/drivers/clk/ux500/u9540_clk.c +++ b/drivers/clk/ux500/u9540_clk.c @@ -9,10 +9,10 @@ #include <linux/clk-provider.h> #include <linux/mfd/dbx500-prcmu.h> -#include <linux/platform_data/clk-ux500.h> #include "clk.h" -void u9540_clk_init(void) +static void u9540_clk_init(struct device_node *np) { /* register clocks here */ } +CLK_OF_DECLARE(u9540_clks, "stericsson,u9540-clks", u9540_clk_init); |