[lkml]   [2018]   [Feb]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH 4.4 149/193] Revert "power: bq27xxx_battery: Remove unneeded dependency in Kconfig"
4.4-stable review patch.  If anyone has any objections, please let me know.


From: Arnd Bergmann <>

This reverts commit 6bd03ce3c12a22d86f59070f1da15aaa2bde8a51, it was applied
in error and cuased this link failure

drivers/built-in.o: In function `bq27xxx_battery_i2c_read':
core.c:(.text+0xa6da8): undefined reference to `i2c_transfer'
drivers/built-in.o: In function `bq27xxx_battery_init':
core.c:(.init.text+0x68e0): undefined reference to `i2c_register_driver'
drivers/built-in.o: In function `bq27xxx_battery_exit':
core.c:(.exit.text+0xc6c): undefined reference to `i2c_del_driver'

Later upstream kernels fixed this with a larger rework in commit
703df6c09795 ("power: bq27xxx_battery: Reorganize I2C into a module"),
but we cannot backport that to 4.4.

Signed-off-by: Arnd Bergmann <>
Signed-off-by: Greg Kroah-Hartman <>
drivers/power/Kconfig | 1 +
1 file changed, 1 insertion(+)

--- a/drivers/power/Kconfig
+++ b/drivers/power/Kconfig
@@ -159,6 +159,7 @@ config BATTERY_SBS

tristate "BQ27xxx battery driver"
+ depends on I2C || I2C=n
Say Y here to enable support for batteries with BQ27xxx (I2C/HDQ) chips.

 \ /
  Last update: 2018-02-23 21:20    [W:0.591 / U:0.784 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site