power_supply: Make goldfish_battery depend on GOLDFISH || COMPILE_TEST
authorPaul Gortmaker <[email protected]>
Thu, 4 Jul 2013 05:39:11 +0000 (01:39 -0400)
committerAnton Vorontsov <[email protected]>
Fri, 9 Aug 2013 20:28:47 +0000 (13:28 -0700)
Nearly all the other goldfish peripherals (mtd, keyboard, etc) have a
dependency on the main platform's GOLDFISH Kconfig item, but this one got
skipped.  Even with consistency as a justification, there was initial
resistance[1] from some people to adding it however, as they wanted the
extra compile coverage.

Now, with CONFIG_COMPILE_TEST, we have the middle ground that will give
people the coverage who want it, and let those who don't want it to skip
ever seeing the option presented.

[1] https://lkml.org/lkml/2013/2/27/333

Cc: David Woodhouse <[email protected]>
Cc: Jiri Slaby <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Paul Gortmaker <[email protected]>
Signed-off-by: Anton Vorontsov <[email protected]>
drivers/power/Kconfig

index 7b8979c63f4882e6c3e5375b9f9c35c40e5a829c..dcc0d9e5817d929d62f7231ff91fb322ffe99ed1 100644 (file)
@@ -357,7 +357,7 @@ config AB8500_BM
 
 config BATTERY_GOLDFISH
        tristate "Goldfish battery driver"
-       depends on GENERIC_HARDIRQS
+       depends on GENERIC_HARDIRQS && (GOLDFISH || COMPILE_TEST)
        help
          Say Y to enable support for the battery and AC power in the
          Goldfish emulator.