summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorTerry Lv <r65388@freescale.com>2011-11-10 10:46:49 +0800
committerTerry Lv <r65388@freescale.com>2011-11-10 16:11:41 +0800
commit97efee177f82b082db9d2019ed641c5b99b3f54b (patch)
tree592131af109bd2349cadad6581f94d92e4da6e2a /drivers/mtd
parenta30b8dbe9cc199067c0cc5a2dc0d7322c9f4303a (diff)
downloadu-boot-imx-97efee177f82b082db9d2019ed641c5b99b3f54b.zip
u-boot-imx-97efee177f82b082db9d2019ed641c5b99b3f54b.tar.gz
u-boot-imx-97efee177f82b082db9d2019ed641c5b99b3f54b.tar.bz2
ENGR00161852: remove u-boot build warnings for mx6q
Remove u-boot build warnings for mx6q. Signed-off-by: Terry Lv <r65388@freescale.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/spi/imx_spi_nor_m25pxx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/spi/imx_spi_nor_m25pxx.c b/drivers/mtd/spi/imx_spi_nor_m25pxx.c
index 9ad2262..492d0fb 100644
--- a/drivers/mtd/spi/imx_spi_nor_m25pxx.c
+++ b/drivers/mtd/spi/imx_spi_nor_m25pxx.c
@@ -137,6 +137,7 @@ static int wait_till_ready(struct spi_flash *flash)
return 1;
}
+#ifdef DEBUG
static int erase_chip(struct spi_flash *flash)
{
/* Wait until finished previous write command. */
@@ -156,6 +157,7 @@ static int erase_chip(struct spi_flash *flash)
return 0;
}
+#endif
static int erase_sector(struct spi_flash *flash, u32 offset)
{