]> git.baikalelectronics.ru Git - kernel.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)
commit3d0301bf55225744ccb3a8bee1d56c28045e0125
tree960da18df052728242add34149784e0147a599a0
parentf7c6cb1b387a7b51b4d27ae899b23b61ef243fcc
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