mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-02-06 19:39:48 +00:00
korina: fix usage of driver_data
Using platform_set_drvdata() here makes no sense, since the driver_data field has already been filled with valuable data (i.e. the MAC address). Also having driver_data point to the net_device is rather pointless since struct korina_device contains an apropriate field for it. Signed-off-by: Phil Sutter <n0-1@freewrt.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
0ef00459a6
commit
b96ecfa689
@ -1089,7 +1089,6 @@ static int korina_probe(struct platform_device *pdev)
|
||||
return -ENOMEM;
|
||||
}
|
||||
SET_NETDEV_DEV(dev, &pdev->dev);
|
||||
platform_set_drvdata(pdev, dev);
|
||||
lp = netdev_priv(dev);
|
||||
|
||||
bif->dev = dev;
|
||||
|
Loading…
x
Reference in New Issue
Block a user