usb: host: xhci-plat: release mem region while removing module
authorGeorge Cherian <george.cherian@ti.com>
Fri, 21 Jun 2013 08:29:08 +0000 (13:59 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Jun 2013 23:15:26 +0000 (16:15 -0700)
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>
drivers/usb/host/xhci-plat.c

index a3a4aa306f334f22f438f8e49dbabf49d9de96a5..51e22bf89505c2bcf360917b8088d5472ccd7ce6 100644 (file)
@@ -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);
 
This page took 0.025318 seconds and 5 git commands to generate.