]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
korina: fix usage of driver_data
authorPhil Sutter <n0-1@freewrt.org>
Thu, 15 Jan 2009 05:46:51 +0000 (21:46 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Jan 2009 16:28:17 +0000 (08:28 -0800)
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>
drivers/net/korina.c

index 4a5580c1126a00b383e4588b4ab6a2fa5376845e..fefb33db79a38a1102c6777e67a8a019ac184715 100644 (file)
@@ -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;