kernel: REGMAP_SPI should only be selectable when SPI_MASTER is selected
[openwrt/staging/yousong.git] / target / linux / generic / patches-3.7 / 259-regmap_dynamic.patch
index db67886ae73c98813687d947b89c513f16db7fe6..6da165eefb7929e3fe1aabddd27f38d216c13ee2 100644 (file)
@@ -1,6 +1,6 @@
 --- a/drivers/base/regmap/Kconfig
 +++ b/drivers/base/regmap/Kconfig
-@@ -3,20 +3,23 @@
+@@ -3,20 +3,24 @@
  # subsystems should select the appropriate symbols.
  
  config REGMAP
@@ -19,6 +19,7 @@
  config REGMAP_SPI
 -      tristate
 +      select REGMAP
++      depends on SPI_MASTER
 +      tristate "Regmap SPI"
  
  config REGMAP_MMIO