aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk/berlin/berlin2-pll.h
diff options
context:
space:
mode:
authorStephen Boyd <stephen.boyd@linaro.org>2016-08-16 15:40:52 -0700
committerStephen Boyd <sboyd@codeaurora.org>2016-08-18 11:30:01 -0700
commitf6475e29829775fb2d28add14246f755b44cd68d (patch)
tree530a26557361a600d2fba38d714c769b0ccf2e10 /drivers/clk/berlin/berlin2-pll.h
parentclk: gcc-ipq4019: Delete unnecessary assignment for the field "owner" (diff)
downloadlinux-dev-f6475e29829775fb2d28add14246f755b44cd68d.tar.xz
linux-dev-f6475e29829775fb2d28add14246f755b44cd68d.zip
clk: berlin: Migrate to clk_hw based registration and OF APIs
Now that we have clk_hw based provider APIs to register clks, we can get rid of struct clk pointers while registering clks in these drivers, allowing us to move closer to a clear split of consumer and provider clk APIs. We also remove some __init markings in header files as they're useless and we're in the area. Tested-by: Jisheng Zhang <jszhang@marvell.com> Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com> Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/berlin/berlin2-pll.h')
-rw-r--r--drivers/clk/berlin/berlin2-pll.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/clk/berlin/berlin2-pll.h b/drivers/clk/berlin/berlin2-pll.h
index 8831ce27ac1e..583e024b9bed 100644
--- a/drivers/clk/berlin/berlin2-pll.h
+++ b/drivers/clk/berlin/berlin2-pll.h
@@ -19,8 +19,6 @@
#ifndef __BERLIN2_PLL_H
#define __BERLIN2_PLL_H
-struct clk;
-
struct berlin2_pll_map {
const u8 vcodiv[16];
u8 mult;
@@ -29,9 +27,8 @@ struct berlin2_pll_map {
u8 divsel_shift;
};
-struct clk * __init
-berlin2_pll_register(const struct berlin2_pll_map *map,
- void __iomem *base, const char *name,
- const char *parent_name, unsigned long flags);
+int berlin2_pll_register(const struct berlin2_pll_map *map,
+ void __iomem *base, const char *name,
+ const char *parent_name, unsigned long flags);
#endif /* __BERLIN2_PLL_H */