diff options
| author | 2015-01-21 00:55:43 +0200 | |
|---|---|---|
| committer | 2015-01-27 09:38:15 -0600 | |
| commit | 5324713c998d6615d858606188fe69a23d1de9d8 (patch) | |
| tree | 363897fef619f4d388e18ffbc559932182392a3a | |
| parent | usb: isp1760: Retrieve pdev memory resource from hcd at remove time (diff) | |
usb: isp1760: Unmap I/O registers at platform device removal
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>
| -rw-r--r-- | drivers/usb/host/isp1760-if.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/host/isp1760-if.c b/drivers/usb/host/isp1760-if.c index 025edf2fb05a..730caa18cbd2 100644 --- a/drivers/usb/host/isp1760-if.c +++ b/drivers/usb/host/isp1760-if.c @@ -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; |
