Skip to content

Commit c142872

Browse files
arndbsre
authored andcommitted
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: cec3b46 ("power: reset: add Odroid Go Ultra poweroff driver") Signed-off-by: Arnd Bergmann <[email protected]> Acked-by: Neil Armstrong <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
1 parent 9de10a5 commit c142872

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/power/reset/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ config POWER_RESET_OCELOT_RESET
144144
config POWER_RESET_ODROID_GO_ULTRA_POWEROFF
145145
bool "Odroid Go Ultra power-off driver"
146146
depends on ARCH_MESON || COMPILE_TEST
147-
depends on I2C && OF
147+
depends on I2C=y && OF
148148
help
149149
This driver supports Power off for Odroid Go Ultra device.
150150

0 commit comments

Comments
 (0)