net: tulip: use pci_{get,set}_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Mon, 2 Sep 2013 08:11:53 +0000 (17:11 +0900)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Sep 2013 02:38:46 +0000 (22:38 -0400)
Use the wrapper functions for getting and setting the driver data
using pci_dev instead of using dev_{get,set}_drvdata() with
&pdev->dev, so we can directly pass a struct pci_dev. This is
a purely cosmetic change.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/dec/tulip/de4x5.c

index 4c83003..2db6c57 100644 (file)
@@ -2319,7 +2319,7 @@ static void de4x5_pci_remove(struct pci_dev *pdev)
        struct net_device *dev;
        u_long iobase;
 
-       dev = dev_get_drvdata(&pdev->dev);
+       dev = pci_get_drvdata(pdev);
        iobase = dev->base_addr;
 
        unregister_netdev (dev);