diff options
author | Alan Cox <alan@linux.intel.com> | 2012-11-20 06:31:57 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-17 09:27:17 -0800 |
commit | be264e172c50e83d50724f03f4fa611f97096880 (patch) | |
tree | 4dcba828421c64315f6b81a9231ec69eb43a34c1 | |
parent | c0f1fb5440da9656fc380fac544265ec891be844 (diff) | |
download | linux-stable-be264e172c50e83d50724f03f4fa611f97096880.tar.gz linux-stable-be264e172c50e83d50724f03f4fa611f97096880.tar.bz2 linux-stable-be264e172c50e83d50724f03f4fa611f97096880.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>
-rw-r--r-- | drivers/net/ethernet/8390/ne.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/8390/ne.c b/drivers/net/ethernet/8390/ne.c index d04911d33b64..47618e505355 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); |