net: sunhme: use platform_{get,set}_drvdata()
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>
This commit is contained in:
committed by
David S. Miller
parent
bc35383256
commit
e04e37a88d
@@ -2798,7 +2798,7 @@ static int happy_meal_sbus_probe_one(struct platform_device *op, int is_qfe)
|
|||||||
goto err_out_free_coherent;
|
goto err_out_free_coherent;
|
||||||
}
|
}
|
||||||
|
|
||||||
dev_set_drvdata(&op->dev, hp);
|
platform_set_drvdata(op, hp);
|
||||||
|
|
||||||
if (qfe_slot != -1)
|
if (qfe_slot != -1)
|
||||||
printk(KERN_INFO "%s: Quattro HME slot %d (SBUS) 10/100baseT Ethernet ",
|
printk(KERN_INFO "%s: Quattro HME slot %d (SBUS) 10/100baseT Ethernet ",
|
||||||
|
Reference in New Issue
Block a user