Skip to contentSkip to conversation

USB OHCI powerbook fix (v2.5.4)

PATCH New Paul Mackerras 1 participant 1 message Feb 13, 2002 USB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 USB OHCI powerbook fix (v2.5.4)

The patch below fixes a compile problem in the USB OHCI HCD driver on powerbooks, namely that the ohci_hcd structure doesn't have an irq member.

Paul.

drivers/usb/hcd/ohci-hcd.c +2 -2
diff -urN linux-2.5/drivers/usb/hcd/ohci-hcd.c pmac-2.5/drivers/usb/hcd/ohci-hcd.c
@@ -662,7 +662,7 @@
 		
  #ifdef CONFIG_PMAC_PBOOK
 	if (_machine == _MACH_Pmac)
-		disable_irq (ohci->irq);
+		disable_irq (hcd->pdev->irq);
  	/* else, 2.4 assumes shared irqs -- don't disable */
  #endif
 
@@ -836,7 +836,7 @@
 
  #ifdef CONFIG_PMAC_PBOOK
 		if (_machine == _MACH_Pmac)
-			enable_irq (ohci->irq);
+			enable_irq (hcd->pdev->irq);
  #endif
 		if (ohci->hcca->done_head)
 			dl_done_list (ohci, dl_reverse_done_list (ohci));