diff options
author | George Cherian <george.cherian@ti.com> | 2013-06-21 10:29:08 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-25 01:15:26 +0200 |
commit | 5388a3a5faba8dfa69e5f06c3a415d373c1a4316 (patch) | |
tree | 3699344ad8de51289123387d41a9fe4c8525bd30 /drivers/usb/host | |
parent | usbmisc_imx: allow autoloading on according to dt ids (diff) | |
download | linux-5388a3a5faba8dfa69e5f06c3a415d373c1a4316.tar.xz linux-5388a3a5faba8dfa69e5f06c3a415d373c1a4316.zip |
usb: host: xhci-plat: release mem region while removing module
Do a release_mem_region of the hcd resource. Without this the
subsequent insertion of module fails in request_mem_region.
Signed-off-by: George Cherian <george.cherian@ti.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Cc: stable <stable@vger.kernel.org> # 3.4+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/xhci-plat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index a3a4aa306f33..51e22bf89505 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -179,6 +179,7 @@ static int xhci_plat_remove(struct platform_device *dev) usb_remove_hcd(hcd); iounmap(hcd->regs); + release_mem_region(hcd->rsrc_start, hcd->rsrc_len); usb_put_hcd(hcd); kfree(xhci); |