goto err_alloc;
}
xhci->name = pci->dev.name;
+ xhci->quirks = pci->id->driver_data;
/* Fix up PCI device */
adjust_pci_device ( pci );
xhci_legacy_claim ( xhci );
/* Fix Intel PCH-specific quirks, if applicable */
- if ( pci->id->driver_data & XHCI_PCH )
+ if ( xhci->quirks & XHCI_PCH )
xhci_pch_fix ( xhci, pci );
/* Reset device */
err_alloc_bus:
xhci_reset ( xhci );
err_reset:
- if ( pci->id->driver_data & XHCI_PCH )
+ if ( xhci->quirks & XHCI_PCH )
xhci_pch_undo ( xhci, pci );
xhci_legacy_release ( xhci );
iounmap ( xhci->regs );
unregister_usb_bus ( bus );
free_usb_bus ( bus );
xhci_reset ( xhci );
- if ( pci->id->driver_data & XHCI_PCH )
+ if ( xhci->quirks & XHCI_PCH )
xhci_pch_undo ( xhci, pci );
xhci_legacy_release ( xhci );
iounmap ( xhci->regs );