usb: dwc3: rockchip: remove unused NULL pointer handle otg_work
authorWilliam wu <wulf@rock-chips.com>
Mon, 10 Oct 2016 04:37:51 +0000 (12:37 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 13 Oct 2016 01:51:58 +0000 (09:51 +0800)
commitb67d7743ecdce263eb7a146f0143cb3d9d4e28d8
tree02c31e79301c811b79cb6619453fbdc8f40f955a
parent0d9cd7338bb64efa9d37d09730d0b99a7da56728
usb: dwc3: rockchip: remove unused NULL pointer handle otg_work

We make sure that get drvdata dwc before register extcon
notifier and schedule otg_work, so we can remove the dwc
NULL pointer handle safely.

Also, change the WARN_ON to dev_warn, and avoid log noise.

Change-Id: Icececf3bb5ad510b91d2c3a50e2126225673605e
Signed-off-by: William wu <wulf@rock-chips.com>
drivers/usb/dwc3/dwc3-rockchip.c