diff options
author | 2013-08-30 14:06:41 +0900 | |
---|---|---|
committer | 2013-08-30 17:43:38 -0400 | |
commit | 3ae603c40d224fa6a30535b9eaad29a9675ac4c9 (patch) | |
tree | f8537e55b2b37da099af7f27e92a3db660e92860 /drivers/net/ethernet/tundra | |
parent | net: davinci_mdio: use dev_get_platdata() (diff) | |
download | linux-3ae603c40d224fa6a30535b9eaad29a9675ac4c9.tar.gz linux-3ae603c40d224fa6a30535b9eaad29a9675ac4c9.tar.bz2 linux-3ae603c40d224fa6a30535b9eaad29a9675ac4c9.zip |
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/tundra')
-rw-r--r-- | drivers/net/ethernet/tundra/tsi108_eth.c | 2 |
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 f2e76c9d736c..c4dbf981804b 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", |