mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 12:43:55 +08:00
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
@ -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 New Issue
Block a user