All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/5] NetXen: Fixed /sys mapping between device and driver
@ 2006-11-30 18:48 Don Fry
  0 siblings, 0 replies; only message in thread
From: Don Fry @ 2006-11-30 18:48 UTC (permalink / raw)
  To: netdev; +Cc: amitkale, jeff, netxenproj, rob, sanjeev, wendyx


Signed-off-by: Amit S. Kale <amitkale@netxen.com>

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
brazilnut@us.ibm.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-11-30 18:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-30 18:48 [PATCH 1/5] NetXen: Fixed /sys mapping between device and driver Don Fry

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.