Skip to contentSkip to conversation

spider_net: access class_device to find irq

PATCH New Stephen Hemminger 1 participant 1 message Nov 6, 2006

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

PATCH 1/1 spider_net: access class_device to find irq

Spider net should be using netdev->irq to find irq not "dumpster diving" off into the PCI device. This code breaks in -mm when class_device is eliminated.

drivers/net/spider_net.c +1 -2
@@ -1919,8 +1919,7 @@
 	spider_net_write_reg(card, SPIDER_NET_GHIINT1MSK, 0);
 	spider_net_write_reg(card, SPIDER_NET_GHIINT2MSK, 0);
 
-	/* free_irq(netdev->irq, netdev);*/
-	free_irq(to_pci_dev(netdev->class_dev.dev)->irq, netdev);
+	free_irq(netdev->irq, netdev);
 
 	spider_net_write_reg(card, SPIDER_NET_GDTDMACCNTR,
 			     SPIDER_NET_DMA_TX_FEND_VALUE);