diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-04-04 10:17:48 -0400 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2019-04-11 19:23:24 -0400 |
commit | fa3c098c2d52a268f6372fa053932e11f50cecb1 (patch) | |
tree | 175619bd92578f0deac9e160949c027ade90166d | |
parent | 492929c547913f77460c20be994482d57bc74840 (diff) |
extcon: axp288: Add a depends on ACPI to the Kconfig entry
As Hans de Goede pointed, using this driver without ACPI
makes little sense, so add ACPI dependency to Kconfig entry
to fix a build error while CONFIG_ACPI is not set.
drivers/extcon/extcon-axp288.c: In function 'axp288_extcon_probe':
drivers/extcon/extcon-axp288.c:363:20: error: dereferencing pointer to incomplete type
put_device(&adev->dev);
Fixes: 0cf064db948a ("extcon: axp288: Convert to use acpi_dev_get_first_match_dev()")
Reported-by: Hulk Robot <hulkci@huawei.com>
Suggested-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Mukesh Ojha <mojha@codeaurora.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
-rw-r--r-- | drivers/extcon/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/extcon/Kconfig b/drivers/extcon/Kconfig index 1ed4b45536c7..de06fafb52ff 100644 --- a/drivers/extcon/Kconfig +++ b/drivers/extcon/Kconfig | |||
@@ -30,7 +30,7 @@ config EXTCON_ARIZONA | |||
30 | 30 | ||
31 | config EXTCON_AXP288 | 31 | config EXTCON_AXP288 |
32 | tristate "X-Power AXP288 EXTCON support" | 32 | tristate "X-Power AXP288 EXTCON support" |
33 | depends on MFD_AXP20X && USB_SUPPORT && X86 | 33 | depends on MFD_AXP20X && USB_SUPPORT && X86 && ACPI |
34 | select USB_ROLE_SWITCH | 34 | select USB_ROLE_SWITCH |
35 | help | 35 | help |
36 | Say Y here to enable support for USB peripheral detection | 36 | Say Y here to enable support for USB peripheral detection |