diff options
author | George Cherian <george.cherian@ti.com> | 2013-06-21 13:59:08 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-24 16:15:26 -0700 |
commit | 5388a3a5faba8dfa69e5f06c3a415d373c1a4316 (patch) | |
tree | 3699344ad8de51289123387d41a9fe4c8525bd30 | |
parent | 269b83dc9ce007efc4393e8a5b77f208a0e18e4a (diff) | |
download | linux-5388a3a5faba8dfa69e5f06c3a415d373c1a4316.tar.gz linux-5388a3a5faba8dfa69e5f06c3a415d373c1a4316.tar.bz2 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>
-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); |