diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2016-06-20 20:14:01 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-21 10:58:29 +0300 |
commit | 1d35f0b2c3fcc8a0c1fd93aba02520c940c0b855 (patch) | |
tree | 0994771e1d86fac64d8ebbdc0cf92e49b50c501e /drivers/net/dsa | |
parent | aa8ac3967e1f8d21b5f89d2a17b1281e1eb52522 (diff) | |
download | linux-1d35f0b2c3fcc8a0c1fd93aba02520c940c0b855.tar.xz |
net: dsa: mv88e6xxx: do not increment bus refcount
The MDIO device probe and remove functions are respectively incrementing
and decrementing the bus refcount themselves. Since these bus level
actions are out of the device scope, remove them.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Acked-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa')
-rw-r--r-- | drivers/net/dsa/mv88e6xxx.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/dsa/mv88e6xxx.c b/drivers/net/dsa/mv88e6xxx.c index b3170ea49592..4b4bffc17d69 100644 --- a/drivers/net/dsa/mv88e6xxx.c +++ b/drivers/net/dsa/mv88e6xxx.c @@ -3712,8 +3712,6 @@ static int mv88e6xxx_probe(struct mdio_device *mdiodev) ps->sw_addr = mdiodev->addr; mutex_init(&ps->smi_mutex); - get_device(&ps->bus->dev); - ds->drv = &mv88e6xxx_switch_driver; id = mv88e6xxx_reg_read(ps, REG_PORT(0), PORT_SWITCH_ID); @@ -3767,7 +3765,6 @@ static void mv88e6xxx_remove(struct mdio_device *mdiodev) struct mv88e6xxx_priv_state *ps = ds_to_priv(ds); dsa_unregister_switch(ds); - put_device(&ps->bus->dev); mv88e6xxx_mdio_unregister(ps); } |