summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-06-29 07:13:21 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-06-29 07:13:23 +0200
commit5f51ca71f66eba2d37caa366749a54ac0f96de02 (patch)
treefa604b20ed94815cd328bb357d50ec4949eea4ba
parentb22d27436bfb5dccdca87c8f0143bfdc831cb336 (diff)
downloadbarebox-5f51ca71f66eba2d37caa366749a54ac0f96de02.tar.gz
barebox-5f51ca71f66eba2d37caa366749a54ac0f96de02.tar.xz
mtd: m25p80: Fix Kconfig dependencies
The m25p80 driver now depends on MTD_SPI_NOR which is disabled in all defconfigs, so this effectively disables the m25p80 driver in all defconfigs. Fix this by selecting MTD_SPI_NOR which is library code without further dependencies. Also let m25p80 depend on SPI because it needs the SPI code and won't link without it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/mtd/devices/Kconfig3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/devices/Kconfig b/drivers/mtd/devices/Kconfig
index 345c348c69..9c3925bde1 100644
--- a/drivers/mtd/devices/Kconfig
+++ b/drivers/mtd/devices/Kconfig
@@ -21,7 +21,8 @@ config MTD_DATAFLASH_WRITE_VERIFY
config MTD_M25P80
tristate "Support most SPI Flash chips (AT26DF, M25P, W25X, ...)"
- depends on MTD_SPI_NOR
+ depends on SPI
+ select MTD_SPI_NOR
help
This enables access to most modern SPI flash chips, used for
program and data storage. Series supported include Atmel AT26DF,