Revert "usb: renesas-xhci: Remove renesas_xhci_pci_exit()"
This reverts commit 3a4e4fa6f9
.
This commit is contained in:
parent
7421898d58
commit
b58ae366d7
3 changed files with 10 additions and 0 deletions
|
@ -631,4 +631,9 @@ exit:
|
|||
}
|
||||
EXPORT_SYMBOL_GPL(renesas_xhci_check_request_fw);
|
||||
|
||||
void renesas_xhci_pci_exit(struct pci_dev *dev)
|
||||
{
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(renesas_xhci_pci_exit);
|
||||
|
||||
MODULE_LICENSE("GPL v2");
|
||||
|
|
|
@ -490,6 +490,8 @@ static void xhci_pci_remove(struct pci_dev *dev)
|
|||
struct xhci_hcd *xhci;
|
||||
|
||||
xhci = hcd_to_xhci(pci_get_drvdata(dev));
|
||||
if (xhci->quirks & XHCI_RENESAS_FW_QUIRK)
|
||||
renesas_xhci_pci_exit(dev);
|
||||
|
||||
xhci->xhc_state |= XHCI_STATE_REMOVING;
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#if IS_ENABLED(CONFIG_USB_XHCI_PCI_RENESAS)
|
||||
int renesas_xhci_check_request_fw(struct pci_dev *dev,
|
||||
const struct pci_device_id *id);
|
||||
void renesas_xhci_pci_exit(struct pci_dev *dev);
|
||||
|
||||
#else
|
||||
static int renesas_xhci_check_request_fw(struct pci_dev *dev,
|
||||
|
@ -15,6 +16,8 @@ static int renesas_xhci_check_request_fw(struct pci_dev *dev,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void renesas_xhci_pci_exit(struct pci_dev *dev) { };
|
||||
|
||||
#endif
|
||||
|
||||
struct xhci_driver_data {
|
||||
|
|
Loading…
Add table
Reference in a new issue