diff options
author | George Cherian <george.cherian@ti.com> | 2013-06-21 13:59:08 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-07-21 18:19:01 -0700 |
commit | ed84d0f8521d2122cb96e3c7c36628840b9763ea (patch) | |
tree | 9182248012a7d78f3b81a8887e38c35722240975 /drivers | |
parent | d1fc72e98503dcfeeab1d5463b00a65b1e5d574e (diff) | |
download | linux-3.10-ed84d0f8521d2122cb96e3c7c36628840b9763ea.tar.gz linux-3.10-ed84d0f8521d2122cb96e3c7c36628840b9763ea.tar.bz2 linux-3.10-ed84d0f8521d2122cb96e3c7c36628840b9763ea.zip |
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>
Diffstat (limited to 'drivers')
-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 df90fe51b4a..93ad67eca05 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); |