aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-09-02 04:12:41 -0400
committerDavid S. Miller <davem@davemloft.net>2013-09-03 22:38:46 -0400
commit521a87cdaece333cb2b89dd6393613119af5a431 (patch)
tree2f09533641a7f596f228340ae79ae41602021cd0
parent1895499230b94c9c043969b312fb7898f815ace0 (diff)
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>
-rw-r--r--drivers/net/ethernet/sun/sunhme.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/sun/sunhme.c b/drivers/net/ethernet/sun/sunhme.c
index 227c499a40cd..e37b587b3860 100644
--- a/drivers/net/ethernet/sun/sunhme.c
+++ b/drivers/net/ethernet/sun/sunhme.c
@@ -3111,7 +3111,7 @@ static int happy_meal_pci_probe(struct pci_dev *pdev,
3111 goto err_out_iounmap; 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 if (!qfe_slot) { 3116 if (!qfe_slot) {
3117 struct pci_dev *qpdev = qp->quattro_dev; 3117 struct pci_dev *qpdev = qp->quattro_dev;
@@ -3159,7 +3159,7 @@ err_out:
3159 3159
3160static void happy_meal_pci_remove(struct pci_dev *pdev) 3160static 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 struct net_device *net_dev = hp->dev; 3163 struct net_device *net_dev = hp->dev;
3164 3164
3165 unregister_netdev(net_dev); 3165 unregister_netdev(net_dev);
@@ -3171,7 +3171,7 @@ static void happy_meal_pci_remove(struct pci_dev *pdev)
3171 3171
3172 free_netdev(net_dev); 3172 free_netdev(net_dev);
3173 3173
3174 dev_set_drvdata(&pdev->dev, NULL); 3174 pci_set_drvdata(pdev, NULL);
3175} 3175}
3176 3176
3177static DEFINE_PCI_DEVICE_TABLE(happymeal_pci_ids) = { 3177static DEFINE_PCI_DEVICE_TABLE(happymeal_pci_ids) = {