diff options
| author | Arthur Demchenkov <spinal.by@gmail.com> | 2015-05-19 09:30:50 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-05-24 12:23:28 -0400 |
| commit | b04c846ceaad42f9e37f3626c7e8f457603863f0 (patch) | |
| tree | d7f68d0aca71ac520ff9799848473cbb7b018b53 | |
| parent | e26081808edadfd257c6c9d81014e3b25e9a6118 (diff) | |
usb: make module xhci_hcd removable
Fixed regression. After commit 29e409f0f761 ("xhci: Allow xHCI drivers to
be built as separate modules") the module xhci_hcd became non-removable.
That behaviour is not expected and there're no notes about it in commit
message. The module should be removable as it blocks PM suspend/resume
functions (Debian Bug#666406).
Signed-off-by: Arthur Demchenkov <spinal.by@gmail.com>
Reviewed-by: Andrew Bresticker <abrestic@chromium.org>
Cc: <stable@vger.kernel.org> # v3.18+
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/usb/host/xhci.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index ec8ac1674854..4299cbf47793 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c | |||
| @@ -5011,4 +5011,12 @@ static int __init xhci_hcd_init(void) | |||
| 5011 | BUILD_BUG_ON(sizeof(struct xhci_run_regs) != (8+8*128)*32/8); | 5011 | BUILD_BUG_ON(sizeof(struct xhci_run_regs) != (8+8*128)*32/8); |
| 5012 | return 0; | 5012 | return 0; |
| 5013 | } | 5013 | } |
| 5014 | |||
| 5015 | /* | ||
| 5016 | * If an init function is provided, an exit function must also be provided | ||
| 5017 | * to allow module unload. | ||
| 5018 | */ | ||
| 5019 | static void __exit xhci_hcd_fini(void) { } | ||
| 5020 | |||
| 5014 | module_init(xhci_hcd_init); | 5021 | module_init(xhci_hcd_init); |
| 5022 | module_exit(xhci_hcd_fini); | ||
