net: tsi108: use dev_get_platdata()
authorJingoo Han <jg1.han@samsung.com>
Fri, 30 Aug 2013 05:06:41 +0000 (14:06 +0900)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Aug 2013 21:43:38 +0000 (17:43 -0400)
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.

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

index f2e76c9d736cfe32e3b365bbb405f1d284aae6e8..c4dbf981804bbd7c22797c6b3718fef904cf23f3 100644 (file)
@@ -1558,7 +1558,7 @@ tsi108_init_one(struct platform_device *pdev)
        hw_info *einfo;
        int err = 0;
 
-       einfo = pdev->dev.platform_data;
+       einfo = dev_get_platdata(&pdev->dev);
 
        if (NULL == einfo) {
                printk(KERN_ERR "tsi-eth %d: Missing additional data!\n",