Subject: Re: [Bugme-new] [Bug 10380] New: sc92031 does not create a device link in sysfs

From: Stephen Hemminger <[email-masked]>
Date: Wed, 2 Apr 2008 09:49:23 -0700

Add missing sysfs device association. Compile tested only -ENOHW.

Signed-off-by: Stephen Hemminger <[email-masked]>
---
Patch against 2.6.25-rc8, ignore previous patch.

--- a/drivers/net/sc92031.c	2008-04-02 09:34:35.000000000 -0700
+++ b/drivers/net/sc92031.c	2008-04-02 09:47:41.000000000 -0700
@@ -1446,6 +1446,7 @@ static int __devinit sc92031_probe(struc
 	}
 
 	pci_set_drvdata(pdev, dev);
+	SET_NETDEV_DEV(dev, &pdev->dev);
 
 #if SC92031_USE_BAR == 0
 	dev->mem_start = pci_resource_start(pdev, SC92031_USE_BAR);