projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c0c4fb
)
net: tulip: use pci_{get,set}_drvdata()
author
Jingoo Han
<
[email protected]
>
Mon, 2 Sep 2013 08:11:53 +0000
(17:11 +0900)
committer
David S. Miller
<
[email protected]
>
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 <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/dec/tulip/de4x5.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/dec/tulip/de4x5.c
b/drivers/net/ethernet/dec/tulip/de4x5.c
index 4c830030fb06ca23056f67a6aebe815a79d57841..2db6c573cec7744c49d6cc205fce25476f0cc0ea 100644
(file)
--- 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(p
dev);
iobase = dev->base_addr;
unregister_netdev (dev);