summaryrefslogtreecommitdiff
path: root/kernel/sysctl_binary.c
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-03 04:22:18 +0300
commit2152e7a2d9a8c29e8850adabd2175fa042ad5bb8 (patch)
tree755fcfdfbac926ecf70a89ed2ebb438a5b908987 /kernel/sysctl_binary.c
parent4a9866179d51ca0df9779364c33d5869a1c6311c (diff)
downloadlinux-2152e7a2d9a8c29e8850adabd2175fa042ad5bb8.tar.xz
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 'kernel/sysctl_binary.c')
0 files changed, 0 insertions, 0 deletions