summaryrefslogtreecommitdiff
path: root/drivers/mtd/spi/imx_spi_nor_m25pxx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/spi/imx_spi_nor_m25pxx.c')
-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)
{