From: Phil Sutter Date: Thu, 15 Jan 2009 05:46:51 +0000 (-0800) Subject: korina: fix usage of driver_data X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b96ecfa689126d1e652ebd758da0b5b9b27dbd12;p=linux-beck.git 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 Signed-off-by: David S. Miller --- 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) return -ENOMEM; } SET_NETDEV_DEV(dev, &pdev->dev); - platform_set_drvdata(pdev, dev); lp = netdev_priv(dev); bif->dev = dev;