summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2012-11-20 06:31:57 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-11 09:03:35 -0800
commit80fef291d6f5d9f6f20e8c54cbc6ecbf47b187df (patch)
tree9563b46b29db9fda03516f1952535acc66b871f0
parent55fdb80050ce0f4a124d24bb5c6394f8f521260b (diff)
ne2000: add the right platform device
[ Upstream commit da9da01d9199b5bb15289d0859053c9aa3a34ac0 ] Without this udev doesn't have a way to key the ne device to the platform device. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/net/ne.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ne.c b/drivers/net/ne.c
index 1063093b3afc..e8ee2bc30bab 100644
--- a/drivers/net/ne.c
+++ b/drivers/net/ne.c
@@ -814,6 +814,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);