[PATCH] NetXen: Fixed /sys mapping between device and driver
authorAmit S. Kale <amitkale@netxen.com>
Wed, 29 Nov 2006 16:58:11 +0000 (08:58 -0800)
committerJeff Garzik <jeff@garzik.org>
Sat, 2 Dec 2006 05:16:36 +0000 (00:16 -0500)
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>
drivers/net/netxen/netxen_nic_main.c

index 145bf47f0a8dada5d9d257d6e5921fa72588952d..ffd272c93a6be86cac90d6c1f4b9101e5e434648 100644 (file)
@@ -273,6 +273,7 @@ netxen_nic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
                }
 
                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_device *netdev, int *budget)
                netxen_nic_enable_int(adapter);
        }
 
-       return (done ? 0 : 1);
+       return !done;
 }
 
 #ifdef CONFIG_NET_POLL_CONTROLLER