diff options
author | Li Jun <jun.li@freescale.com> | 2015-12-15 04:47:47 -0500 |
---|---|---|
committer | Peter Chen <peter.chen@freescale.com> | 2015-12-24 01:17:58 -0500 |
commit | 43a404577a93d236913b67e41758adf5b9a8f45d (patch) | |
tree | 99ddde2af507e6edc6c3ca79438e8d43d2696aa7 /drivers/usb/chipidea | |
parent | 4b19b78aa6f1f57a997d93fa05df6724792a85ba (diff) |
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: Li Jun <jun.li@freescale.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Diffstat (limited to 'drivers/usb/chipidea')
-rw-r--r-- | drivers/usb/chipidea/host.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/chipidea/host.c b/drivers/usb/chipidea/host.c index 3d24304405b3..053bac9d983c 100644 --- a/drivers/usb/chipidea/host.c +++ b/drivers/usb/chipidea/host.c | |||
@@ -190,6 +190,8 @@ static void host_stop(struct ci_hdrc *ci) | |||
190 | (ci->platdata->flags & CI_HDRC_TURN_VBUS_EARLY_ON)) | 190 | (ci->platdata->flags & CI_HDRC_TURN_VBUS_EARLY_ON)) |
191 | regulator_disable(ci->platdata->reg_vbus); | 191 | regulator_disable(ci->platdata->reg_vbus); |
192 | } | 192 | } |
193 | ci->hcd = NULL; | ||
194 | ci->otg.host = NULL; | ||
193 | } | 195 | } |
194 | 196 | ||
195 | 197 | ||