Skip to content

Commit

Permalink
[PATCH] NetXen: Fixed /sys mapping between device and driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Amit S. Kale authored and Jeff Garzik committed Dec 2, 2006
1 parent 38e3a64 commit edf9016
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/netxen/netxen_nic_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit edf9016

Please sign in to comment.