Patchwork ne2000: add the right platform device

login
register
mail settings
Submitter Alan Cox
Date Nov. 20, 2012, 4:31 p.m.
Message ID <20121120163157.11874.74810.stgit@bob.linux.org.uk>
Download mbox | patch
Permalink /patch/200391/
State Accepted
Delegated to: David Miller
Headers show

Comments

Alan Cox - Nov. 20, 2012, 4:31 p.m.
From: Alan Cox <alan@linux.intel.com>

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>
---

 drivers/net/ethernet/8390/ne.c |    1 +
 1 file changed, 1 insertion(+)



--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
David Miller - Nov. 20, 2012, 6:49 p.m.
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
Date: Tue, 20 Nov 2012 16:31:57 +0000

> From: Alan Cox <alan@linux.intel.com>
> 
> 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>

Applied and queued up for -stable, thanks Alan.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/net/ethernet/8390/ne.c b/drivers/net/ethernet/8390/ne.c
index d04911d..47618e5 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);