--- 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
config REGMAP_SPI
- tristate
+ select REGMAP
++ depends on SPI_MASTER
+ tristate "Regmap SPI"
config REGMAP_MMIO
#include <linux/mutex.h>
#include <linux/err.h>
#include <linux/rbtree.h>
-@@ -1777,3 +1778,5 @@ static int __init regmap_initcall(void)
+@@ -1779,3 +1780,5 @@ static int __init regmap_initcall(void)
return 0;
}
postcore_initcall(regmap_initcall);