usb: dwc3: rockchip: fix xhci NULL pointer dereference
authorWu Liang feng <wulf@rock-chips.com>
Thu, 13 Oct 2016 06:08:52 +0000 (14:08 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 13 Oct 2016 06:50:29 +0000 (14:50 +0800)
commit499fcb657afea8d5ee69b0d2ff8901f5167892cb
treeedbfd66a7254cd02c44f88968235757008bddb8e
parent3300229adabe440aeb298887ce52b49dfa3ba347
usb: dwc3: rockchip: fix xhci NULL pointer dereference

If DWC3 works as peripheral only mode, XHCI HCD will
not be created and added, so we should only get XHCI
HCD in host mode.

Change-Id: Iefb02431d6a973050986963bbabe0a943283f4b3
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
drivers/usb/dwc3/dwc3-rockchip.c