OSDN Git Service

usb: chipidea: core: do not register extcon notifier if extcon device is not existed
authorPeter Chen <peter.chen@nxp.com>
Fri, 23 Jun 2017 06:39:27 +0000 (14:39 +0800)
committerPeter Chen <peter.chen@nxp.com>
Tue, 25 Jul 2017 07:22:44 +0000 (15:22 +0800)
commit7c3a8b81503ce8e6ab22341f0267d30085d17194
tree6916e32d5c35494818540b7a4fdab1da148f183c
parentb74c43156c0caf392d93baae3df8e1788f799646
usb: chipidea: core: do not register extcon notifier if extcon device is not existed

This issue is detected when the system has another device driver
which registers USB connector extcon device, fix it by adding
extcon device check.

Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/chipidea/core.c