Skip to content

Commit

Permalink
regmap: Add explicit dependencies to catch "select" misuse
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Geert Uytterhoeven authored and Mark Brown committed Aug 17, 2014
1 parent dd060bc commit 9ba1e45
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/base/regmap/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9ba1e45

Please sign in to comment.