summaryrefslogtreecommitdiff
path: root/drivers/mtd/spi/atmel.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-04-12 01:51:29 -0400
committerMike Frysinger <vapier@gentoo.org>2011-04-12 02:15:56 -0400
commitf8f0757dcb117664a712650f000433e765acffbd (patch)
tree7bd09a5d60f6cd8a858cdcc261af634e5c3672a0 /drivers/mtd/spi/atmel.c
parentc5910874ba418e7dc35661b98a8931cb86358f95 (diff)
downloadu-boot-imx-f8f0757dcb117664a712650f000433e765acffbd.zip
u-boot-imx-f8f0757dcb117664a712650f000433e765acffbd.tar.gz
u-boot-imx-f8f0757dcb117664a712650f000433e765acffbd.tar.bz2
sf: localize erase funcs
No need for these to be exported as they are only accessed indirectly via function pointers. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'drivers/mtd/spi/atmel.c')
-rw-r--r--drivers/mtd/spi/atmel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/spi/atmel.c b/drivers/mtd/spi/atmel.c
index d17ebf6..1ecece0 100644
--- a/drivers/mtd/spi/atmel.c
+++ b/drivers/mtd/spi/atmel.c
@@ -328,7 +328,7 @@ out:
/*
* TODO: the two erase funcs (_p2/_at45) should get unified ...
*/
-int dataflash_erase_p2(struct spi_flash *flash, u32 offset, size_t len)
+static int dataflash_erase_p2(struct spi_flash *flash, u32 offset, size_t len)
{
struct atmel_spi_flash *asf = to_atmel_spi_flash(flash);
unsigned long page_size;
@@ -387,7 +387,7 @@ out:
return ret;
}
-int dataflash_erase_at45(struct spi_flash *flash, u32 offset, size_t len)
+static int dataflash_erase_at45(struct spi_flash *flash, u32 offset, size_t len)
{
struct atmel_spi_flash *asf = to_atmel_spi_flash(flash);
unsigned long page_addr;