Skip to content

Commit

Permalink
usb: renesas-xhci: Remove renesas_xhci_pci_exit()
Browse files Browse the repository at this point in the history
Remove empty function renesas_xhci_pci_exit() that does not
actually do anything.

Cc: Mathias Nyman <mathias.nyman@intel.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Moritz Fischer <mdf@kernel.org>
Link: https://lore.kernel.org/r/20210718015111.389719-3-mdf@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
mfischer authored and gregkh committed Jul 21, 2021
1 parent e13690d commit 884c274
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions drivers/usb/host/xhci-pci-renesas.c
Original file line number Diff line number Diff line change
Expand Up @@ -620,9 +620,4 @@ int renesas_xhci_check_request_fw(struct pci_dev *pdev,
}
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");
2 changes: 0 additions & 2 deletions drivers/usb/host/xhci-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,6 @@ 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;

Expand Down
3 changes: 0 additions & 3 deletions drivers/usb/host/xhci-pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#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,
Expand All @@ -16,8 +15,6 @@ 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 {
Expand Down

0 comments on commit 884c274

Please sign in to comment.