summaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/mv88e6xxx/port.h
diff options
context:
space:
mode:
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>2017-06-08 18:34:08 -0400
committerDavid S. Miller <davem@davemloft.net>2017-06-09 12:10:57 -0400
commit774439e532bfe9dba83a5f499fcdfd8eea961919 (patch)
tree7346b4fde69e23d0097ada10f4c2159507c0f651 /drivers/net/dsa/mv88e6xxx/port.h
parentfff88030b3ff930ca7a3d74acfee0472f33887ea (diff)
downloadlinux-stable-774439e532bfe9dba83a5f499fcdfd8eea961919.tar.gz
linux-stable-774439e532bfe9dba83a5f499fcdfd8eea961919.tar.bz2
linux-stable-774439e532bfe9dba83a5f499fcdfd8eea961919.zip
net: dsa: mv888e6xxx: do not use netdev printing
The mv888e6xxx driver accesses a port's netdev mostly for printing. This is bad for 2 reasons: DSA and CPU ports do not have a netdev pointer; it doesn't give us a correct picture of why a DSA driver might need to access a port's netdev. Instead simply use dev_* printing functions with chip->dev (or ds->dev depending on the scope, both guaranteed to exist), with a p%d prefix for the target port. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/mv88e6xxx/port.h')
0 files changed, 0 insertions, 0 deletions