diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-08-30 07:06:41 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-30 23:43:38 +0200 |
commit | 3ae603c40d224fa6a30535b9eaad29a9675ac4c9 (patch) | |
tree | f8537e55b2b37da099af7f27e92a3db660e92860 /drivers | |
parent | net: davinci_mdio: use dev_get_platdata() (diff) | |
download | linux-3ae603c40d224fa6a30535b9eaad29a9675ac4c9.tar.xz 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')
-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", |