mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
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>
This commit is contained in:
parent
2c0c4fbe55
commit
1895499230
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user