kernel: REGMAP_SPI should only be selectable when SPI_MASTER is selected
[openwrt/svn-archive/archive.git] / target / linux / generic / patches-3.8 / 259-regmap_dynamic.patch
index 53bfe3805184a102700b50f83cb85b86909dcb81..87c03f1ad3675bea80f73309c2bb21024998fea8 100644 (file)
@@ -1,6 +1,6 @@
 --- a/drivers/base/regmap/Kconfig
 +++ b/drivers/base/regmap/Kconfig
 --- 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
  # subsystems should select the appropriate symbols.
  
  config REGMAP
@@ -19,6 +19,7 @@
  config REGMAP_SPI
 -      tristate
 +      select REGMAP
  config REGMAP_SPI
 -      tristate
 +      select REGMAP
++      depends on SPI_MASTER
 +      tristate "Regmap SPI"
  
  config REGMAP_MMIO
 +      tristate "Regmap SPI"
  
  config REGMAP_MMIO