]> Pileus Git - ~andy/linux/commitdiff
net: sunhme: use platform_{get,set}_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Mon, 2 Sep 2013 08:08:44 +0000 (17:08 +0900)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Sep 2013 02:38:45 +0000 (22:38 -0400)
Use the wrapper functions for getting and setting the driver data
using platform_device instead of using dev_{get,set}_drvdata()
with &pdev->dev, so we can directly pass a struct platform_device.
This is a purely cosmetic change.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sun/sunhme.c

index c67e683a36e1e8edeac343e5b7fa56fa7547a926..227c499a40cd0ed529ce5902249c47650d0a2d25 100644 (file)
@@ -2798,7 +2798,7 @@ static int happy_meal_sbus_probe_one(struct platform_device *op, int is_qfe)
                goto err_out_free_coherent;
        }
 
-       dev_set_drvdata(&op->dev, hp);
+       platform_set_drvdata(op, hp);
 
        if (qfe_slot != -1)
                printk(KERN_INFO "%s: Quattro HME slot %d (SBUS) 10/100baseT Ethernet ",