kernel: REGMAP_SPI should only be selectable when SPI_MASTER is selected
[openwrt/svn-archive/archive.git] / target / linux / generic / patches-3.9 / 259-regmap_dynamic.patch
index 480f2c181f91756ba9585aab8e76165da62521ed..e1b0141a0e700ad043258b7f4dc17877c3fd6788 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