usb: chipidea: host: set host to be null after hcd is freed
authorLi Jun <jun.li@freescale.com>
Tue, 15 Dec 2015 09:47:47 +0000 (17:47 +0800)
committerPeter Chen <peter.chen@freescale.com>
Thu, 24 Dec 2015 06:17:58 +0000 (14:17 +0800)
commit43a404577a93d236913b67e41758adf5b9a8f45d
tree99ddde2af507e6edc6c3ca79438e8d43d2696aa7
parent4b19b78aa6f1f57a997d93fa05df6724792a85ba
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>
drivers/usb/chipidea/host.c