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

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
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
}