Commit 521a87cdaece333cb2b89dd6393613119af5a431

Authored by Jingoo Han
Committed by David S. Miller
1 parent 1895499230

net: sunhme: 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>

Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff

drivers/net/ethernet/sun/sunhme.c
... ... @@ -3111,7 +3111,7 @@
3111 3111 goto err_out_iounmap;
3112 3112 }
3113 3113  
3114   - dev_set_drvdata(&pdev->dev, hp);
  3114 + pci_set_drvdata(pdev, hp);
3115 3115  
3116 3116 if (!qfe_slot) {
3117 3117 struct pci_dev *qpdev = qp->quattro_dev;
... ... @@ -3159,7 +3159,7 @@
3159 3159  
3160 3160 static void happy_meal_pci_remove(struct pci_dev *pdev)
3161 3161 {
3162   - struct happy_meal *hp = dev_get_drvdata(&pdev->dev);
  3162 + struct happy_meal *hp = pci_get_drvdata(pdev);
3163 3163 struct net_device *net_dev = hp->dev;
3164 3164  
3165 3165 unregister_netdev(net_dev);
... ... @@ -3171,7 +3171,7 @@
3171 3171  
3172 3172 free_netdev(net_dev);
3173 3173  
3174   - dev_set_drvdata(&pdev->dev, NULL);
  3174 + pci_set_drvdata(pdev, NULL);
3175 3175 }
3176 3176  
3177 3177 static DEFINE_PCI_DEVICE_TABLE(happymeal_pci_ids) = {