diff options
author | Stephen Boyd | 2016-08-17 00:40:52 +0200 |
---|---|---|
committer | Stephen Boyd | 2016-08-18 20:30:01 +0200 |
commit | f6475e29829775fb2d28add14246f755b44cd68d (patch) | |
tree | 530a26557361a600d2fba38d714c769b0ccf2e10 /drivers/clk/berlin/berlin2-avpll.h | |
parent | clk: gcc-ipq4019: Delete unnecessary assignment for the field "owner" (diff) | |
download | kernel-qcow2-linux-f6475e29829775fb2d28add14246f755b44cd68d.tar.gz kernel-qcow2-linux-f6475e29829775fb2d28add14246f755b44cd68d.tar.xz kernel-qcow2-linux-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-avpll.h')
-rw-r--r-- | drivers/clk/berlin/berlin2-avpll.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/clk/berlin/berlin2-avpll.h b/drivers/clk/berlin/berlin2-avpll.h index a37f5068d299..17e311153b42 100644 --- a/drivers/clk/berlin/berlin2-avpll.h +++ b/drivers/clk/berlin/berlin2-avpll.h @@ -19,17 +19,13 @@ #ifndef __BERLIN2_AVPLL_H #define __BERLIN2_AVPLL_H -struct clk; - #define BERLIN2_AVPLL_BIT_QUIRK BIT(0) #define BERLIN2_AVPLL_SCRAMBLE_QUIRK BIT(1) -struct clk * __init -berlin2_avpll_vco_register(void __iomem *base, const char *name, +int berlin2_avpll_vco_register(void __iomem *base, const char *name, const char *parent_name, u8 vco_flags, unsigned long flags); -struct clk * __init -berlin2_avpll_channel_register(void __iomem *base, const char *name, +int berlin2_avpll_channel_register(void __iomem *base, const char *name, u8 index, const char *parent_name, u8 ch_flags, unsigned long flags); |