Commit c142872e authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Sebastian Reichel

power: reset: odroid-go-ultra: fix I2C dependency

Since this driver can only be built-in, it fails to link when
the I2C layer is in a loadable module:

x86_64-linux-ld: drivers/power/reset/odroid-go-ultra-poweroff.o: in function `odroid_go_ultra_poweroff_get_pmic_device':
odroid-go-ultra-poweroff.c:(.text+0x30): undefined reference to `i2c_find_device_by_fwnode'

Tighten the dependency to only allow enabling
POWER_RESET_ODROID_GO_ULTRA_POWEROFF is I2C is built-in as well.

Fixes: cec3b46b ("power: reset: add Odroid Go Ultra poweroff driver")
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Acked-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 9de10a51
...@@ -144,7 +144,7 @@ config POWER_RESET_OCELOT_RESET ...@@ -144,7 +144,7 @@ config POWER_RESET_OCELOT_RESET
config POWER_RESET_ODROID_GO_ULTRA_POWEROFF config POWER_RESET_ODROID_GO_ULTRA_POWEROFF
bool "Odroid Go Ultra power-off driver" bool "Odroid Go Ultra power-off driver"
depends on ARCH_MESON || COMPILE_TEST depends on ARCH_MESON || COMPILE_TEST
depends on I2C && OF depends on I2C=y && OF
help help
This driver supports Power off for Odroid Go Ultra device. This driver supports Power off for Odroid Go Ultra device.
......
Markdown is supported
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