aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/netxen
diff options
context:
space:
mode:
authorAmit S. Kale <amitkale@netxen.com>2006-11-29 11:58:11 -0500
committerJeff Garzik <jeff@garzik.org>2006-12-02 00:16:36 -0500
commitedf901638144525a140c68be01be1b22e6041a6d (patch)
tree695eb7f9cc82f91f64678070197b3560fe8451c8 /drivers/net/netxen
parent38e3a6466f369944a2a1ec9aee9a9e472689d0a9 (diff)
[PATCH] NetXen: Fixed /sys mapping between device and driver
Signed-off-by: Amit S. Kale <amitkale@netxen.com> netxen_nic_main.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/netxen')
-rw-r--r--drivers/net/netxen/netxen_nic_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c
index 145bf47f0a8d..ffd272c93a6b 100644
--- a/drivers/net/netxen/netxen_nic_main.c
+++ b/drivers/net/netxen/netxen_nic_main.c
@@ -273,6 +273,7 @@ netxen_nic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
273 } 273 }
274 274
275 SET_MODULE_OWNER(netdev); 275 SET_MODULE_OWNER(netdev);
276 SET_NETDEV_DEV(netdev, &pdev->dev);
276 277
277 port = netdev_priv(netdev); 278 port = netdev_priv(netdev);
278 port->netdev = netdev; 279 port->netdev = netdev;
@@ -1043,7 +1044,7 @@ static int netxen_nic_poll(struct net_device *netdev, int *budget)
1043 netxen_nic_enable_int(adapter); 1044 netxen_nic_enable_int(adapter);
1044 } 1045 }
1045 1046
1046 return (done ? 0 : 1); 1047 return !done;
1047} 1048}
1048 1049
1049#ifdef CONFIG_NET_POLL_CONTROLLER 1050#ifdef CONFIG_NET_POLL_CONTROLLER