summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/dec/tulip
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-09-02 10:11:53 +0200
committerDavid S. Miller <davem@davemloft.net>2013-09-04 04:38:46 +0200
commit1895499230b94c9c043969b312fb7898f815ace0 (patch)
tree01db7a9cb27830d20778ac18bd0706c4960b859d /drivers/net/ethernet/dec/tulip
parentnet: mdio-octeon: use platform_{get,set}_drvdata() (diff)
downloadlinux-1895499230b94c9c043969b312fb7898f815ace0.tar.xz
linux-1895499230b94c9c043969b312fb7898f815ace0.zip
net: tulip: use pci_{get,set}_drvdata()
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>
Diffstat (limited to 'drivers/net/ethernet/dec/tulip')
-rw-r--r--drivers/net/ethernet/dec/tulip/de4x5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/dec/tulip/de4x5.c b/drivers/net/ethernet/dec/tulip/de4x5.c
index 4c830030fb06..2db6c573cec7 100644
--- a/drivers/net/ethernet/dec/tulip/de4x5.c
+++ b/drivers/net/ethernet/dec/tulip/de4x5.c
@@ -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);