]> Pileus Git - ~andy/linux/commitdiff
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 4c830030fb06ca23056f67a6aebe815a79d57841..2db6c573cec7744c49d6cc205fce25476f0cc0ea 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);