Skip to content
Snippets Groups Projects
Commit 43a40457 authored by Li Jun's avatar Li Jun Committed by Peter Chen
Browse files

usb: chipidea: host: set host to be null after hcd is freed


Set ci->hcd and ci->otg.host to be null in host_stop since the
hcd already freed.

Signed-off-by: default avatarLi Jun <jun.li@freescale.com>
Signed-off-by: default avatarPeter Chen <peter.chen@freescale.com>
parent 4b19b78a
Branches
No related tags found
No related merge requests found
......@@ -190,6 +190,8 @@ static void host_stop(struct ci_hdrc *ci)
(ci->platdata->flags & CI_HDRC_TURN_VBUS_EARLY_ON))
regulator_disable(ci->platdata->reg_vbus);
}
ci->hcd = NULL;
ci->otg.host = NULL;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment