Minor fix in 2.6.19 forcedeth driver.
authorFlorian Pose <fp@igh-essen.com>
Thu, 22 Feb 2007 10:15:02 +0000
changeset 593 78c838980258
parent 592 6ca369325cdd
child 594 07dd2a7df66e
Minor fix in 2.6.19 forcedeth driver.
devices/forcedeth-2.6.19-ethercat.c
--- a/devices/forcedeth-2.6.19-ethercat.c	Thu Feb 22 10:06:32 2007 +0000
+++ b/devices/forcedeth-2.6.19-ethercat.c	Thu Feb 22 10:15:02 2007 +0000
@@ -4273,12 +4273,12 @@
 	nv_txrx_reset(dev);
 
 	/* disable interrupts on the nic or we will lock up */
-	base = get_hwbase(dev);
-	if (!np->ecdev) nv_disable_hw_interrupts(dev, np->irqmask);
-	pci_push(base);
-	dprintk(KERN_INFO "%s: Irqmask is zero again\n", dev->name);
-
 	if (!np->ecdev) {
+		base = get_hwbase(dev);
+		nv_disable_hw_interrupts(dev, np->irqmask);
+		pci_push(base);
+		dprintk(KERN_INFO "%s: Irqmask is zero again\n", dev->name);
+
 		spin_unlock_irq(&np->lock);
 
 		nv_free_irq(dev);