diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-10-16 16:21:44 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2018-10-17 19:44:25 +0200 |
commit | b2e39dc0bb8107341f6f704472e79fd32d0cef25 (patch) | |
tree | e197bd2e3b19172e19da203f0a96eba3dede29e5 /drivers/clk/at91/clk-i2s-mux.c | |
parent | clk: at91: generated: set audio_pll_allowed in at91_clk_register_generated() (diff) | |
download | linux-b2e39dc0bb8107341f6f704472e79fd32d0cef25.tar.xz linux-b2e39dc0bb8107341f6f704472e79fd32d0cef25.zip |
clk: at91: allow clock registration from C code
Remove static keyword to allow functions to be used from other units. Also
move some struct and function declarations to pmc.h
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
[sboyd@kernel.org: Include pmc.h]
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/at91/clk-i2s-mux.c')
-rw-r--r-- | drivers/clk/at91/clk-i2s-mux.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/clk/at91/clk-i2s-mux.c b/drivers/clk/at91/clk-i2s-mux.c index f0c3c3079f04..276d055c8a41 100644 --- a/drivers/clk/at91/clk-i2s-mux.c +++ b/drivers/clk/at91/clk-i2s-mux.c @@ -14,6 +14,8 @@ #include <soc/at91/atmel-sfr.h> +#include "pmc.h" + #define I2S_BUS_NR 2 struct clk_i2s_mux { @@ -48,7 +50,7 @@ static const struct clk_ops clk_i2s_mux_ops = { .determine_rate = __clk_mux_determine_rate, }; -static struct clk_hw * __init +struct clk_hw * __init at91_clk_i2s_mux_register(struct regmap *regmap, const char *name, const char * const *parent_names, unsigned int num_parents, u8 bus_id) |