Subject: [PATCH 1/5] NetXen: Fixed /sys mapping between device and driver

From: Don Fry <[email-masked]>
Date: Thu, 30 Nov 2006 10:48:57 -0800

Signed-off-by: Amit S. Kale <[email-masked]>

diff -Nupr netdev-2.6/drivers/net/netxen.orig/netxen_nic_main.c netdev-2.6/drivers/net/netxen/netxen_nic_main.c
--- netdev-2.6/drivers/net/netxen.orig/netxen_nic_main.c	2006-11-29 12:13:58.000000000 -0800
+++ netdev-2.6/drivers/net/netxen/netxen_nic_main.c	2006-11-30 09:17:51.000000000 -0800
@@ -273,6 +273,7 @@ netxen_nic_probe(struct pci_dev *pdev, c
 		}
 
 		SET_MODULE_OWNER(netdev);
+		SET_NETDEV_DEV(netdev, &pdev->dev);
 
 		port = netdev_priv(netdev);
 		port->netdev = netdev;
@@ -1043,7 +1044,7 @@ static int netxen_nic_poll(struct net_de
 		netxen_nic_enable_int(adapter);
 	}
 
-	return (done ? 0 : 1);
+	return !done;
 }
 
 #ifdef CONFIG_NET_POLL_CONTROLLER
-- 
Don Fry
[email-masked]