kernel: make the kernel 3.18 patches apply and boot on arm.
[openwrt/staging/chunkeey.git] / target / linux / generic / patches-3.18 / 259-regmap_dynamic.patch
index e7f5bcee97aa900319e7e378c1d37516139cec4a..55e639cb852326ffbad79469bbf3de025bfc3001 100644 (file)
@@ -1,6 +1,6 @@
 --- a/drivers/base/regmap/Kconfig
 +++ b/drivers/base/regmap/Kconfig
-@@ -3,23 +3,28 @@
+@@ -3,26 +3,31 @@
  # subsystems should select the appropriate symbols.
  
  config REGMAP
  
  config REGMAP_I2C
 -      tristate
-+      select REGMAP
 +      tristate "Regmap I2C
++      select REGMAP
+       depends on I2C
  
  config REGMAP_SPI
 -      tristate
++      tristate "Regmap SPI"
 +      select REGMAP
 +      depends on SPI_MASTER
-+      tristate "Regmap SPI"
+       depends on SPI
  
  config REGMAP_SPMI
 +      select REGMAP
        tristate
+       depends on SPMI
  
  config REGMAP_MMIO
 +      select REGMAP
@@ -67,8 +70,8 @@
 +#include <linux/module.h>
  #include <linux/mutex.h>
  #include <linux/err.h>
- #include <linux/rbtree.h>
-@@ -2247,3 +2248,5 @@ static int __init regmap_initcall(void)
+ #include <linux/of.h>
+@@ -2635,3 +2636,5 @@ static int __init regmap_initcall(void)
        return 0;
  }
  postcore_initcall(regmap_initcall);