]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ENGR00300890-1 mtd: fix the build error
authorHuang Shijie <b32955@freescale.com>
Wed, 26 Feb 2014 04:05:56 +0000 (12:05 +0800)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:16:37 +0000 (21:16 -0600)
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>
drivers/mtd/devices/Kconfig

index 01281382180b4c53182d2b07aa4bdd426de34559..004b17b412639f07a59616690313375ffa9def90 100644 (file)
@@ -80,7 +80,7 @@ config MTD_DATAFLASH_OTP
 
 config MTD_M25P80
        tristate "Support most SPI Flash chips (AT26DF, M25P, W25X, ...)"
-       depends on SPI_MASTER
+       depends on SPI_MASTER && MTD_SPI_NOR_BASE
        help
          This enables access to most modern SPI flash chips, used for
          program and data storage.   Series supported include Atmel AT26DF,