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>
This commit is contained in:
Alexandre Belloni
2018-10-16 16:21:44 +02:00
committed by Stephen Boyd
parent c1e4580a1d
commit b2e39dc0bb
14 changed files with 172 additions and 59 deletions

View File

@@ -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)