Skip to contentSkip to conversation

NetXen: Fixed /sys mapping between device and driver

PATCH In review Linsys Contractor Amit S. Kale 1 participant 1 message Nov 22, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/4 NetXen: Fixed /sys mapping between device and driver

 netxen_nic_main.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)
drivers/net/netxen/netxen_nic_main.c +2 -1
index 145bf47..a055208 100644
@@ -273,6 +273,7 @@ netxen_nic_probe(struct pci_dev *pdev, c
 		}
 
 		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_de
 		netxen_nic_enable_int(adapter);
 	}
 
-	return (done ? 0 : 1);
+	return (!done);
 }
 
 #ifdef CONFIG_NET_POLL_CONTROLLER