Platform: OLPC: Require CONFIG_POWER_SUPPLY for XO-1.75 EC
authorLubomir Rintel <lkundrak@v3.sk>
Wed, 29 May 2019 08:34:04 +0000 (10:34 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 12 Jun 2019 08:53:17 +0000 (11:53 +0300)
commitaf21f32c78e0f3446e50bd01dbd041f4082d5fda
tree6e61e6d3fc7a4ff839791f3b49489c8daa95a84c
parentfd43f16cca951b5eea6703f5f98381cf4883f86c
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>
drivers/platform/olpc/Kconfig