diff options
author | Huang Shijie <b32955@freescale.com> | 2014-02-25 23:05:56 -0500 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2014-04-16 09:57:47 -0400 |
commit | 42f1ed23ef3f743dbf1cb673c88d9b192e667da8 (patch) | |
tree | 774a52f4b4ca42aeda5ae1dd9917ee227ba6d3fc | |
parent | 35a109b8190d09381d440638af7827190d9af5c6 (diff) |
ENGR00300890-1 mtd: fix the build error
We may meet the built error:
------------------------------------------------------
drivers/built-in.o: In function `m25p_probe:
clk-composite.c:(.text+0xed7b4): undefined reference to `spi_nor_scan
drivers/built-in.o: In function `.LANCHOR1:
clk-composite.c:(.data+0xe4a0): undefined reference to `spi_nor_ids
make: *** [vmlinux] Error 1
------------------------------------------------------
This error is caused by the missing dependency of SPI NOR framework.
Signed-off-by: Huang Shijie <b32955@freescale.com>
-rw-r--r-- | drivers/mtd/devices/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/devices/Kconfig b/drivers/mtd/devices/Kconfig index 97a6b6410c0f..13fcc3dc9a57 100644 --- a/drivers/mtd/devices/Kconfig +++ b/drivers/mtd/devices/Kconfig | |||
@@ -80,7 +80,7 @@ config MTD_DATAFLASH_OTP | |||
80 | 80 | ||
81 | config MTD_M25P80 | 81 | config MTD_M25P80 |
82 | tristate "Support most SPI Flash chips (AT26DF, M25P, W25X, ...)" | 82 | tristate "Support most SPI Flash chips (AT26DF, M25P, W25X, ...)" |
83 | depends on SPI_MASTER | 83 | depends on SPI_MASTER && MTD_SPI_NOR_BASE |
84 | help | 84 | help |
85 | This enables access to most modern SPI flash chips, used for | 85 | This enables access to most modern SPI flash chips, used for |
86 | program and data storage. Series supported include Atmel AT26DF, | 86 | program and data storage. Series supported include Atmel AT26DF, |