summaryrefslogtreecommitdiffstats
path: root/drivers/platform/olpc
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2019-05-29 10:34:04 +0200
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2019-06-12 11:53:17 +0300
commitaf21f32c78e0f3446e50bd01dbd041f4082d5fda (patch)
tree6e61e6d3fc7a4ff839791f3b49489c8daa95a84c /drivers/platform/olpc
parentfd43f16cca951b5eea6703f5f98381cf4883f86c (diff)
downloadlinux-af21f32c78e0f3446e50bd01dbd041f4082d5fda.tar.gz
linux-af21f32c78e0f3446e50bd01dbd041f4082d5fda.tar.bz2
linux-af21f32c78e0f3446e50bd01dbd041f4082d5fda.zip
Platform: OLPC: Require CONFIG_POWER_SUPPLY for XO-1.75 EC
ERROR: "power_supply_put" [drivers/platform/olpc/olpc-xo175-ec.ko] undefined! ERROR: "power_supply_changed" [drivers/platform/olpc/olpc-xo175-ec.ko] undefined! ERROR: "power_supply_get_by_name" [drivers/platform/olpc/olpc-xo175-ec.ko] undefined! Adding the dependency seems like a more reasonable thing compared to ifdef-ing the bits, as if one has an XO-1.75 they almost certainly want a baterry and AC adapter support. Reported-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Acked-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/platform/olpc')
-rw-r--r--drivers/platform/olpc/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/olpc/Kconfig b/drivers/platform/olpc/Kconfig
index 1fa676c5e7fa..6f35c01254e5 100644
--- a/drivers/platform/olpc/Kconfig
+++ b/drivers/platform/olpc/Kconfig
@@ -7,6 +7,7 @@ config OLPC_XO175_EC
depends on ARCH_MMP || COMPILE_TEST
depends on SPI_SLAVE
depends on INPUT
+ depends on POWER_SUPPLY
select OLPC_EC
help
Include support for the OLPC XO Embedded Controller (EC). The EC