projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b19b78
)
usb: chipidea: host: set host to be null after hcd is freed
author
Li Jun
<jun.li@freescale.com>
Tue, 15 Dec 2015 09:47:47 +0000
(17:47 +0800)
committer
Peter Chen
<peter.chen@freescale.com>
Thu, 24 Dec 2015 06:17:58 +0000
(14:17 +0800)
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>
drivers/usb/chipidea/host.c
patch
|
blob
|
history
diff --git
a/drivers/usb/chipidea/host.c
b/drivers/usb/chipidea/host.c
index 3d24304405b36f358a56d7a8dc6a881804b62df9..053bac9d983cbd7b3e4d24ee9f227ec0ba909368 100644
(file)
--- a/
drivers/usb/chipidea/host.c
+++ b/
drivers/usb/chipidea/host.c
@@
-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;
}