Commit edf90163 authored by Amit S. Kale's avatar Amit S. Kale Committed by Jeff Garzik

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

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

 netxen_nic_main.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 38e3a646
...@@ -273,6 +273,7 @@ netxen_nic_probe(struct pci_dev *pdev, const struct pci_device_id *ent) ...@@ -273,6 +273,7 @@ netxen_nic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
} }
SET_MODULE_OWNER(netdev); SET_MODULE_OWNER(netdev);
SET_NETDEV_DEV(netdev, &pdev->dev);
port = netdev_priv(netdev); port = netdev_priv(netdev);
port->netdev = netdev; port->netdev = netdev;
...@@ -1043,7 +1044,7 @@ static int netxen_nic_poll(struct net_device *netdev, int *budget) ...@@ -1043,7 +1044,7 @@ static int netxen_nic_poll(struct net_device *netdev, int *budget)
netxen_nic_enable_int(adapter); netxen_nic_enable_int(adapter);
} }
return (done ? 0 : 1); return !done;
} }
#ifdef CONFIG_NET_POLL_CONTROLLER #ifdef CONFIG_NET_POLL_CONTROLLER
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment