]> asedeno.scripts.mit.edu Git - linux.git/commit
net: mscc: ocelot: move resource ioremap and regmap init to common code
authorClaudiu Manoil <claudiu.manoil@nxp.com>
Thu, 14 Nov 2019 15:03:20 +0000 (17:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Nov 2019 20:32:16 +0000 (12:32 -0800)
commit259630e08c2135df6582040b20bd5bb1383964a3
tree960da18df052728242add34149784e0147a599a0
parente7be235fa783209a661c8a324c1e394a5e4d9170
net: mscc: ocelot: move resource ioremap and regmap init to common code

Let's make this ioremap and regmap init code common.  It should not
be platform dependent as it should be usable by PCI devices too.
Use better names where necessary to avoid clashes.

Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot.h
drivers/net/ethernet/mscc/ocelot_board.c
drivers/net/ethernet/mscc/ocelot_io.c