usb: isp1760: Unmap I/O registers at platform device removal
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 20 Jan 2015 22:55:43 +0000 (00:55 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 27 Jan 2015 15:38:15 +0000 (09:38 -0600)
The I/O registers are mapped in the HCD code but must be unmapped by
glue code. The OF and PCI glue code unmap them correctly but the
platform glue code is missing an iounmap() call. Fix it.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/host/isp1760-if.c

index 025edf2fb05ab53063e056c0ad5659d51203b1a6..730caa18cbd2f0d67ec35fa2913d4a1fb5e7aa8a 100644 (file)
@@ -376,9 +376,8 @@ static int isp1760_plat_remove(struct platform_device *pdev)
        struct usb_hcd *hcd = platform_get_drvdata(pdev);
 
        usb_remove_hcd(hcd);
-
+       iounmap(hcd->regs);
        release_mem_region(hcd->rsrc_start, hcd->rsrc_len);
-
        usb_put_hcd(hcd);
 
        return 0;