From 90bfe6af18c84a7e3ba424cba0c2602d883bd286 Mon Sep 17 00:00:00 2001 From: Terry Lv Date: Wed, 12 May 2010 22:49:24 +0800 Subject: ENGR00122651: Add dwc_ahsata support Add dwc_ahsata support. Signed-off-by: Terry Lv --- drivers/mtd/spi/imx_spi_nor_atmel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers/mtd/spi') diff --git a/drivers/mtd/spi/imx_spi_nor_atmel.c b/drivers/mtd/spi/imx_spi_nor_atmel.c index 19a5197..5575498 100644 --- a/drivers/mtd/spi/imx_spi_nor_atmel.c +++ b/drivers/mtd/spi/imx_spi_nor_atmel.c @@ -100,13 +100,13 @@ static s32 spi_nor_status(struct spi_flash *flash) return g_rx_buf[0]; } +#if 0 /*! * Erase a block_size data from block_addr offset in the flash */ static int spi_nor_erase_page(struct spi_flash *flash, void *page_addr) { - u32 *cmd = (u32 *)g_tx_buf; u32 addr = (u32)page_addr; if ((addr & 512) != 0) { @@ -127,6 +127,7 @@ static int spi_nor_erase_page(struct spi_flash *flash, return 0; } +#endif static int spi_nor_flash_read(struct spi_flash *flash, u32 offset, size_t len, void *buf) -- cgit v1.1