aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Cherian <george.cherian@ti.com>2013-06-21 04:29:08 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-21 21:21:24 -0400
commita5ea8ca0b2d24ab8beae6b218abeb771d40ae966 (patch)
tree08d4c6cf09fcd2df9e511d5f74f7f30c148111e3
parent333db1d07c454f02e008780273df44c1e3102448 (diff)
usb: host: xhci-plat: release mem region while removing module
commit 5388a3a5faba8dfa69e5f06c3a415d373c1a4316 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/host/xhci-plat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
index df90fe51b4aa..93ad67eca053 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)
179 179
180 usb_remove_hcd(hcd); 180 usb_remove_hcd(hcd);
181 iounmap(hcd->regs); 181 iounmap(hcd->regs);
182 release_mem_region(hcd->rsrc_start, hcd->rsrc_len);
182 usb_put_hcd(hcd); 183 usb_put_hcd(hcd);
183 kfree(xhci); 184 kfree(xhci);
184 185