summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-08-30 14:06:41 +0900
committerDavid S. Miller <davem@davemloft.net>2013-08-30 17:43:38 -0400
commit3ae603c40d224fa6a30535b9eaad29a9675ac4c9 (patch)
treef8537e55b2b37da099af7f27e92a3db660e92860 /drivers/net/ethernet
parent894cdbb0a40388fedde12ec893f6e900f6162ccf (diff)
net: tsi108: use dev_get_platdata()
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>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r--drivers/net/ethernet/tundra/tsi108_eth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/tundra/tsi108_eth.c b/drivers/net/ethernet/tundra/tsi108_eth.c
index f2e76c9d736..c4dbf981804 100644
--- a/drivers/net/ethernet/tundra/tsi108_eth.c
+++ b/drivers/net/ethernet/tundra/tsi108_eth.c
@@ -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",