diff options
-rw-r--r-- | drivers/usb/chipidea/ci_hdrc_imx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_imx.c index 8994f4b91151..0cb2961a54b1 100644 --- a/drivers/usb/chipidea/ci_hdrc_imx.c +++ b/drivers/usb/chipidea/ci_hdrc_imx.c @@ -228,7 +228,8 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev) } } - if (of_find_property(np, "imx6-usb-charger-detection", NULL)) + if (of_find_property(np, "imx6-usb-charger-detection", NULL) && + IS_ENABLED(CONFIG_IMX6_USB_CHARGER)) data->imx6_usb_charger_detection = true; if (data->imx6_usb_charger_detection) { |