regmap: Add explicit dependencies to catch "select" misuse
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 17 Aug 2014 10:08:57 +0000 (12:08 +0200)
committerMark Brown <broonie@linaro.org>
Sun, 17 Aug 2014 13:54:14 +0000 (08:54 -0500)
Add explicit dependencies for the various regmap modules, so Kconfig
will print a warning message when another module selects a regmap module
without fulfilling its dependencies.

Without this, it's much more difficult to find out which module did the
offending select.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/base/regmap/Kconfig

index 4251570610c9fbcebf1e6903999d508d8949ea70..8a3f51f7b1b9167b1a84788c5a3def482a4c205c 100644 (file)
@@ -11,12 +11,15 @@ config REGMAP
 
 config REGMAP_I2C
        tristate
+       depends on I2C
 
 config REGMAP_SPI
        tristate
+       depends on SPI
 
 config REGMAP_SPMI
        tristate
+       depends on SPMI
 
 config REGMAP_MMIO
        tristate