diff options
author | Andrew Lunn <andrew@lunn.ch> | 2016-04-13 02:40:39 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-04-14 00:15:22 +0200 |
commit | bbb8d793994c894eef2a48a35fac6de3c6b4fa93 (patch) | |
tree | b77344abffc2f441f5a2a17f6a8852df63519e06 /drivers/net/dsa/mv88e6060.c | |
parent | Merge tag 'mac80211-next-for-davem-2016-04-13' of git://git.kernel.org/pub/sc... (diff) | |
download | linux-bbb8d793994c894eef2a48a35fac6de3c6b4fa93.tar.xz linux-bbb8d793994c894eef2a48a35fac6de3c6b4fa93.zip |
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>
Diffstat (limited to 'drivers/net/dsa/mv88e6060.c')
-rw-r--r-- | drivers/net/dsa/mv88e6060.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/dsa/mv88e6060.c b/drivers/net/dsa/mv88e6060.c index 0527f485c3dc..34d0f9fe19db 100644 --- a/drivers/net/dsa/mv88e6060.c +++ b/drivers/net/dsa/mv88e6060.c @@ -57,7 +57,8 @@ static int reg_write(struct dsa_switch *ds, int addr, int reg, u16 val) return __ret; \ }) -static char *mv88e6060_probe(struct device *host_dev, int sw_addr) +static char *mv88e6060_probe(struct device *dsa_dev, struct device *host_dev, + int sw_addr) { struct mii_bus *bus = dsa_host_dev_to_mii_bus(host_dev); int ret; |