Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5324713c authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Felipe Balbi
Browse files

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: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent fcead843
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;