summaryrefslogtreecommitdiff
path: root/drivers/net
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:06:27 -0800
commitaa335048531c58da34fed27b69a7ba0faf9a1eee (patch)
tree7f0878d5fc191fdb8706aa9a19aab36ddcb925ff /drivers/net
parentdff343c7f4dfa5650d5d3a78f58f080ec9f14a25 (diff)
downloadlinux-3.10-aa335048531c58da34fed27b69a7ba0faf9a1eee.tar.gz
linux-3.10-aa335048531c58da34fed27b69a7ba0faf9a1eee.tar.bz2
linux-3.10-aa335048531c58da34fed27b69a7ba0faf9a1eee.zip
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>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/8390/ne.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/8390/ne.c b/drivers/net/ethernet/8390/ne.c
index d04911d33b6..47618e50535 100644
--- a/drivers/net/ethernet/8390/ne.c
+++ b/drivers/net/ethernet/8390/ne.c
@@ -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);