Commit 48c812e0 authored by Mark Brown's avatar Mark Brown Committed by David S. Miller

net: mscc: Fix non-GPL export of regmap APIs

The ocelot driver makes use of regmap, wrapping it with driver specific
operations that are thin wrappers around the core regmap APIs. These are
exported with EXPORT_SYMBOL, dropping the _GPL from the core regmap
exports which is frowned upon. Add _GPL suffixes to at least the APIs that
are doing register I/O.
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Acked-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b69dd5b3
...@@ -21,7 +21,7 @@ u32 __ocelot_read_ix(struct ocelot *ocelot, u32 reg, u32 offset) ...@@ -21,7 +21,7 @@ u32 __ocelot_read_ix(struct ocelot *ocelot, u32 reg, u32 offset)
ocelot->map[target][reg & REG_MASK] + offset, &val); ocelot->map[target][reg & REG_MASK] + offset, &val);
return val; return val;
} }
EXPORT_SYMBOL(__ocelot_read_ix); EXPORT_SYMBOL_GPL(__ocelot_read_ix);
void __ocelot_write_ix(struct ocelot *ocelot, u32 val, u32 reg, u32 offset) void __ocelot_write_ix(struct ocelot *ocelot, u32 val, u32 reg, u32 offset)
{ {
...@@ -32,7 +32,7 @@ void __ocelot_write_ix(struct ocelot *ocelot, u32 val, u32 reg, u32 offset) ...@@ -32,7 +32,7 @@ void __ocelot_write_ix(struct ocelot *ocelot, u32 val, u32 reg, u32 offset)
regmap_write(ocelot->targets[target], regmap_write(ocelot->targets[target],
ocelot->map[target][reg & REG_MASK] + offset, val); ocelot->map[target][reg & REG_MASK] + offset, val);
} }
EXPORT_SYMBOL(__ocelot_write_ix); EXPORT_SYMBOL_GPL(__ocelot_write_ix);
void __ocelot_rmw_ix(struct ocelot *ocelot, u32 val, u32 mask, u32 reg, void __ocelot_rmw_ix(struct ocelot *ocelot, u32 val, u32 mask, u32 reg,
u32 offset) u32 offset)
...@@ -45,7 +45,7 @@ void __ocelot_rmw_ix(struct ocelot *ocelot, u32 val, u32 mask, u32 reg, ...@@ -45,7 +45,7 @@ void __ocelot_rmw_ix(struct ocelot *ocelot, u32 val, u32 mask, u32 reg,
ocelot->map[target][reg & REG_MASK] + offset, ocelot->map[target][reg & REG_MASK] + offset,
mask, val); mask, val);
} }
EXPORT_SYMBOL(__ocelot_rmw_ix); EXPORT_SYMBOL_GPL(__ocelot_rmw_ix);
u32 ocelot_port_readl(struct ocelot_port *port, u32 reg) u32 ocelot_port_readl(struct ocelot_port *port, u32 reg)
{ {
...@@ -58,7 +58,7 @@ u32 ocelot_port_readl(struct ocelot_port *port, u32 reg) ...@@ -58,7 +58,7 @@ u32 ocelot_port_readl(struct ocelot_port *port, u32 reg)
regmap_read(port->target, ocelot->map[target][reg & REG_MASK], &val); regmap_read(port->target, ocelot->map[target][reg & REG_MASK], &val);
return val; return val;
} }
EXPORT_SYMBOL(ocelot_port_readl); EXPORT_SYMBOL_GPL(ocelot_port_readl);
void ocelot_port_writel(struct ocelot_port *port, u32 val, u32 reg) void ocelot_port_writel(struct ocelot_port *port, u32 val, u32 reg)
{ {
...@@ -69,7 +69,7 @@ void ocelot_port_writel(struct ocelot_port *port, u32 val, u32 reg) ...@@ -69,7 +69,7 @@ void ocelot_port_writel(struct ocelot_port *port, u32 val, u32 reg)
regmap_write(port->target, ocelot->map[target][reg & REG_MASK], val); regmap_write(port->target, ocelot->map[target][reg & REG_MASK], val);
} }
EXPORT_SYMBOL(ocelot_port_writel); EXPORT_SYMBOL_GPL(ocelot_port_writel);
void ocelot_port_rmwl(struct ocelot_port *port, u32 val, u32 mask, u32 reg) void ocelot_port_rmwl(struct ocelot_port *port, u32 val, u32 mask, u32 reg)
{ {
...@@ -77,7 +77,7 @@ void ocelot_port_rmwl(struct ocelot_port *port, u32 val, u32 mask, u32 reg) ...@@ -77,7 +77,7 @@ void ocelot_port_rmwl(struct ocelot_port *port, u32 val, u32 mask, u32 reg)
ocelot_port_writel(port, (cur & (~mask)) | val, reg); ocelot_port_writel(port, (cur & (~mask)) | val, reg);
} }
EXPORT_SYMBOL(ocelot_port_rmwl); EXPORT_SYMBOL_GPL(ocelot_port_rmwl);
u32 __ocelot_target_read_ix(struct ocelot *ocelot, enum ocelot_target target, u32 __ocelot_target_read_ix(struct ocelot *ocelot, enum ocelot_target target,
u32 reg, u32 offset) u32 reg, u32 offset)
...@@ -128,7 +128,7 @@ int ocelot_regfields_init(struct ocelot *ocelot, ...@@ -128,7 +128,7 @@ int ocelot_regfields_init(struct ocelot *ocelot,
return 0; return 0;
} }
EXPORT_SYMBOL(ocelot_regfields_init); EXPORT_SYMBOL_GPL(ocelot_regfields_init);
static struct regmap_config ocelot_regmap_config = { static struct regmap_config ocelot_regmap_config = {
.reg_bits = 32, .reg_bits = 32,
...@@ -148,4 +148,4 @@ struct regmap *ocelot_regmap_init(struct ocelot *ocelot, struct resource *res) ...@@ -148,4 +148,4 @@ struct regmap *ocelot_regmap_init(struct ocelot *ocelot, struct resource *res)
return devm_regmap_init_mmio(ocelot->dev, regs, &ocelot_regmap_config); return devm_regmap_init_mmio(ocelot->dev, regs, &ocelot_regmap_config);
} }
EXPORT_SYMBOL(ocelot_regmap_init); EXPORT_SYMBOL_GPL(ocelot_regmap_init);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment