Commit 43a40457 authored by Li Jun's avatar Li Jun Committed by Peter Chen

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
...@@ -190,6 +190,8 @@ static void host_stop(struct ci_hdrc *ci) ...@@ -190,6 +190,8 @@ static void host_stop(struct ci_hdrc *ci)
(ci->platdata->flags & CI_HDRC_TURN_VBUS_EARLY_ON)) (ci->platdata->flags & CI_HDRC_TURN_VBUS_EARLY_ON))
regulator_disable(ci->platdata->reg_vbus); regulator_disable(ci->platdata->reg_vbus);
} }
ci->hcd = NULL;
ci->otg.host = NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment