Skip to content
Commit fa3c098c authored by YueHaibing's avatar YueHaibing Committed by Chanwoo Choi
Browse files

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: 0cf064db ("extcon: axp288: Convert to use acpi_dev_get_first_match_dev()")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Suggested-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Reviewed-by: default avatarMukesh Ojha <mojha@codeaurora.org>
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
parent 492929c5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment