[2/5] net: sunhme: use platform_{get,set}_drvdata()

Message ID 001001cea7b3$a4ae1620$ee0a4260$%han@samsung.com
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Jingoo Han Sept. 2, 2013, 8:08 a.m.
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>
 drivers/net/ethernet/sun/sunhme.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/drivers/net/ethernet/sun/sunhme.c b/drivers/net/ethernet/sun/sunhme.c
index c67e683..227c499 100644
--- a/drivers/net/ethernet/sun/sunhme.c
+++ b/drivers/net/ethernet/sun/sunhme.c
@@ -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 ",