Skip to content

Commit 5f8f84e

Browse files
MaxKellermanngregkh
authored andcommitted
drivers/misc/amd-sbi/Kconfig: select REGMAP_I2C
Without CONFIG_REGMAP, rmi-i2c.c fails to build because struct regmap_config is not defined: drivers/misc/amd-sbi/rmi-i2c.c: In function ‘sbrmi_i2c_probe’: drivers/misc/amd-sbi/rmi-i2c.c:57:16: error: variable ‘sbrmi_i2c_regmap_config’ has initializer but incomplete type 57 | struct regmap_config sbrmi_i2c_regmap_config = { | ^~~~~~~~~~~~~ Additionally, CONFIG_REGMAP_I2C is needed for devm_regmap_init_i2c(): ld: drivers/misc/amd-sbi/rmi-i2c.o: in function `sbrmi_i2c_probe': drivers/misc/amd-sbi/rmi-i2c.c:69:(.text+0x1c0): undefined reference to `__devm_regmap_init_i2c' Fixes: 013f7e7 ("misc: amd-sbi: Use regmap subsystem") Cc: [email protected] Signed-off-by: Max Kellermann <[email protected]> Tested-by: Akshay Gupta <[email protected]> Reviewed-by: Akshay Gupta <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent b0531cd commit 5f8f84e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/misc/amd-sbi/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
config AMD_SBRMI_I2C
33
tristate "AMD side band RMI support"
44
depends on I2C
5+
select REGMAP_I2C
56
help
67
Side band RMI over I2C support for AMD out of band management.
78

0 commit comments

Comments
 (0)