net: dsa: Pass the dsa device to the switch drivers
authorAndrew Lunn <andrew@lunn.ch>
Wed, 13 Apr 2016 00:40:39 +0000 (02:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Apr 2016 22:15:22 +0000 (18:15 -0400)
commitbbb8d793994c894eef2a48a35fac6de3c6b4fa93
treeb77344abffc2f441f5a2a17f6a8852df63519e06
parent71bbe25d01fa4f35551ff7bffc3e03ddd3e960cd
net: dsa: Pass the dsa device to the switch drivers

By passing a device structure to the switch devices, it allows them
to use devm_* methods for resource management.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Tested-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/bcm_sf2.c
drivers/net/dsa/mv88e6060.c
drivers/net/dsa/mv88e6123.c
drivers/net/dsa/mv88e6131.c
drivers/net/dsa/mv88e6171.c
drivers/net/dsa/mv88e6352.c
include/net/dsa.h
net/dsa/dsa.c