Skip to content
Snippets Groups Projects
Commit a5ea8ca0 authored by George Cherian's avatar George Cherian Committed by Greg Kroah-Hartman
Browse files

usb: host: xhci-plat: release mem region while removing module


commit 5388a3a5 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: default avatarGeorge Cherian <george.cherian@ti.com>
Acked-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 333db1d0
Branches
Tags
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment