net: fec_mpc52xx_phy: remove unnecessary dev_set_drvdata()
authorLibo Chen <libo.chen@huawei.com>
Wed, 21 Aug 2013 07:02:22 +0000 (15:02 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Aug 2013 19:27:04 +0000 (12:27 -0700)
Unnecessary dev_set_drvdata() is removed, because the driver core
clears the driver data to NULL after device_release or on probe failure.

Signed-off-by: Libo Chen <libo.chen@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_mpc52xx_phy.c

index eb447971ed4fc7b9c7ed6429938e47bf710d58a6..e0528900db023cada5870329317996511e407e73 100644 (file)
@@ -127,7 +127,6 @@ static int mpc52xx_fec_mdio_remove(struct platform_device *of)
        struct mpc52xx_fec_mdio_priv *priv = bus->priv;
 
        mdiobus_unregister(bus);
-       dev_set_drvdata(dev, NULL);
        iounmap(priv->regs);
        kfree(priv);
        mdiobus_free(bus);