Commit af21f32c authored by Lubomir Rintel's avatar Lubomir Rintel Committed by Andy Shevchenko

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: default avatarRandy Dunlap <rdunlap@infradead.org>
Signed-off-by: default avatarLubomir Rintel <lkundrak@v3.sk>
Acked-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent fd43f16c
...@@ -7,6 +7,7 @@ config OLPC_XO175_EC ...@@ -7,6 +7,7 @@ config OLPC_XO175_EC
depends on ARCH_MMP || COMPILE_TEST depends on ARCH_MMP || COMPILE_TEST
depends on SPI_SLAVE depends on SPI_SLAVE
depends on INPUT depends on INPUT
depends on POWER_SUPPLY
select OLPC_EC select OLPC_EC
help help
Include support for the OLPC XO Embedded Controller (EC). The EC Include support for the OLPC XO Embedded Controller (EC). The EC
......
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