aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/freescale/fec_mpc52xx.h
diff options
context:
space:
mode:
authorClaudiu Manoil <claudiu.manoil@nxp.com>2019-08-01 14:52:49 +0300
committerDavid S. Miller <davem@davemloft.net>2019-08-02 18:22:18 -0700
commit2152e7a2d9a8c29e8850adabd2175fa042ad5bb8 (patch)
tree755fcfdfbac926ecf70a89ed2ebb438a5b908987 /drivers/net/ethernet/freescale/fec_mpc52xx.h
parentMerge branch 'net-dsa-mv88e6xxx-add-support-for-MV88E6220' (diff)
downloadlinux-dev-2152e7a2d9a8c29e8850adabd2175fa042ad5bb8.tar.xz
linux-dev-2152e7a2d9a8c29e8850adabd2175fa042ad5bb8.zip
enetc: Clean up local mdio bus allocation
What's needed is basically a pointer to the mdio registers. This is one way to store it inside bus->priv allocated space, without upsetting sparse. Reworked accessors to avoid __iomem casting. Used devm_* variant to further clean up the init error / remove paths. Fixes following sparse warning: warning: incorrect type in assignment (different address spaces) expected void *priv got struct enetc_mdio_regs [noderef] <asn:2>*[assigned] regs Fixes: ebfcb23d62ab ("enetc: Add ENETC PF level external MDIO support") Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/fec_mpc52xx.h')
0 files changed, 0 insertions, 0 deletions