Skip to contentSkip to conversation

ne2000: add the right platform device

PATCH In review Alan Cox 2 participants 2 messages Nov 20, 2012

Subsystems (3)
lore
Share & tools
lore

Alan Cox

author
#0 lore raw

PATCH 1/1 ne2000: add the right platform device

From: Alan Cox <[email protected]>

Without this udev doesn't have a way to key the ne device to the platform device.

---

 drivers/net/ethernet/8390/ne.c |    1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/8390/ne.c +1 -0
index d04911d..47618e5 100644
@@ -813,6 +813,7 @@ static int __init ne_drv_probe(struct platform_device *pdev)
 		dev->irq = irq[this_dev];
 		dev->mem_end = bad[this_dev];
 	}
+	SET_NETDEV_DEV(dev, &pdev->dev);
 	err = do_ne_probe(dev);
 	if (err) {
 		free_netdev(dev);