diff options
author | Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> | 2016-07-05 12:23:30 -0400 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2016-08-12 21:01:50 -0400 |
commit | 915128b621a05c63fa58ca9e4cbdf394bbe592f3 (patch) | |
tree | e27b795be8f73d18efdf94e5580f87bbfd619378 | |
parent | cb1291c3fdf0c3ffe3eba92a52e6c5362f2aaf6e (diff) |
clk: sunxi: apb0: Use new macro CLK_OF_DECLARE_DRIVER
This driver initializes a clock provider via sun8i_a23_apb0_setup
and then continues the initialization on sun8i_a23_apb0_clk_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>
-rw-r--r-- | drivers/clk/sunxi/clk-sun8i-apb0.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/sunxi/clk-sun8i-apb0.c b/drivers/clk/sunxi/clk-sun8i-apb0.c index a5666e1d0ce7..ea1eed24778c 100644 --- a/drivers/clk/sunxi/clk-sun8i-apb0.c +++ b/drivers/clk/sunxi/clk-sun8i-apb0.c | |||
@@ -82,8 +82,8 @@ err_unmap: | |||
82 | of_address_to_resource(node, 0, &res); | 82 | of_address_to_resource(node, 0, &res); |
83 | release_mem_region(res.start, resource_size(&res)); | 83 | release_mem_region(res.start, resource_size(&res)); |
84 | } | 84 | } |
85 | CLK_OF_DECLARE(sun8i_a23_apb0, "allwinner,sun8i-a23-apb0-clk", | 85 | CLK_OF_DECLARE_DRIVER(sun8i_a23_apb0, "allwinner,sun8i-a23-apb0-clk", |
86 | sun8i_a23_apb0_setup); | 86 | sun8i_a23_apb0_setup); |
87 | 87 | ||
88 | static int sun8i_a23_apb0_clk_probe(struct platform_device *pdev) | 88 | static int sun8i_a23_apb0_clk_probe(struct platform_device *pdev) |
89 | { | 89 | { |