]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf04b916ab4434a577d350e5bac60ce611f9f6f43
tree6916e32d5c35494818540b7a4fdab1da148f183c
parent50e98c6b9f21e9c4fdf35e241d8edea3cd8d4179
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