From: Amit S. Kale Date: Wed, 29 Nov 2006 16:58:11 +0000 (-0800) Subject: [PATCH] NetXen: Fixed /sys mapping between device and driver X-Git-Tag: v2.6.20-rc2~6^2~13^2~468^2~33 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=edf901638144525a140c68be01be1b22e6041a6d;p=linux-2.6-omap-h63xx.git [PATCH] NetXen: Fixed /sys mapping between device and driver Signed-off-by: Amit S. Kale netxen_nic_main.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c index 145bf47f0a8..ffd272c93a6 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) } 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