|
@@ -575,6 +575,7 @@ static int __devinit mac_sonic_probe(struct platform_device *pdev)
|
|
lp = netdev_priv(dev);
|
|
lp = netdev_priv(dev);
|
|
lp->device = &pdev->dev;
|
|
lp->device = &pdev->dev;
|
|
SET_NETDEV_DEV(dev, &pdev->dev);
|
|
SET_NETDEV_DEV(dev, &pdev->dev);
|
|
|
|
+ platform_set_drvdata(pdev, dev);
|
|
|
|
|
|
/* This will catch fatal stuff like -ENOMEM as well as success */
|
|
/* This will catch fatal stuff like -ENOMEM as well as success */
|
|
err = mac_onboard_sonic_probe(dev);
|
|
err = mac_onboard_sonic_probe(dev);
|