]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00290297 usb: imx6-usb-charger: disable charger if it has not configurated
authorPeter Chen <peter.chen@freescale.com>
Thu, 28 Nov 2013 08:06:44 +0000 (16:06 +0800)
committerPeter Chen <peter.chen@freescale.com>
Sun, 1 Dec 2013 11:22:35 +0000 (19:22 +0800)
commita098bf1d0f31c53567dad797c791b61329a58acd
treeca68773501797e5c70956f451abf04c6bb2e7f9f
parent78290abe6643c8ab509cfe6fbc460c22a912cec1
ENGR00290297 usb: imx6-usb-charger: disable charger if it has not configurated

If the user set imx6-usb-charger-detection at dts, but not enable
CONFIG_IMX6_USB_CHARGER, the imx6_usb_create_charger will return
-ENODEV, and the controlller probe will fail, it is not we want,
what we expect is the charger detection has disabled, but controller
function should not be affected.

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