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>
This commit is contained in:
parent
894cdbb0a4
commit
3ae603c40d
1 changed files with 1 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue