aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorPhil Sutter <n0-1@freewrt.org>2009-01-15 00:46:51 -0500
committerDavid S. Miller <davem@davemloft.net>2009-01-15 11:28:17 -0500
commitb96ecfa689126d1e652ebd758da0b5b9b27dbd12 (patch)
tree9caed6a7f1c863f52173695064cffc0ab08b0b37 /drivers
parent0ef00459a638ae4f5d1e5326d3e50232fa80119f (diff)
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/korina.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/korina.c b/drivers/net/korina.c
index 4a5580c1126a..fefb33db79a3 100644
--- a/drivers/net/korina.c
+++ b/drivers/net/korina.c
@@ -1089,7 +1089,6 @@ static int korina_probe(struct platform_device *pdev)
1089 return -ENOMEM; 1089 return -ENOMEM;
1090 } 1090 }
1091 SET_NETDEV_DEV(dev, &pdev->dev); 1091 SET_NETDEV_DEV(dev, &pdev->dev);
1092 platform_set_drvdata(pdev, dev);
1093 lp = netdev_priv(dev); 1092 lp = netdev_priv(dev);
1094 1093
1095 bif->dev = dev; 1094 bif->dev = dev;