[PATCH] USB: Use new PCI_CLASS_SERIAL_USB_* defines
We could use the recently added PCI_CLASS_SERIAL_USB_UHCI, PCI_CLASS_SERIAL_USB_OHCI and PCI_CLASS_SERIAL_USB_EHCI defines in more places, for slightly shorter and clearer code. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
9fb81ce636
commit
c67808eee6
@@ -1097,7 +1097,7 @@ pmac_pci_enable_device_hook(struct pci_dev *dev, int initial)
|
||||
* (iBook second controller)
|
||||
*/
|
||||
if (dev->vendor == PCI_VENDOR_ID_APPLE
|
||||
&& (dev->class == ((PCI_CLASS_SERIAL_USB << 8) | 0x10))
|
||||
&& dev->class == PCI_CLASS_SERIAL_USB_OHCI
|
||||
&& !node) {
|
||||
printk(KERN_INFO "Apple USB OHCI %s disabled by firmware\n",
|
||||
pci_name(dev));
|
||||
|
Reference in New Issue
Block a user