aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/devices/mtd_dataflash.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/devices/mtd_dataflash.c')
-rw-r--r--drivers/mtd/devices/mtd_dataflash.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/mtd/devices/mtd_dataflash.c b/drivers/mtd/devices/mtd_dataflash.c
index ea7ea7b595d8..945c9f762349 100644
--- a/drivers/mtd/devices/mtd_dataflash.c
+++ b/drivers/mtd/devices/mtd_dataflash.c
@@ -618,9 +618,8 @@ static char *otp_setup(struct mtd_info *device, char revision)
618/* 618/*
619 * Register DataFlash device with MTD subsystem. 619 * Register DataFlash device with MTD subsystem.
620 */ 620 */
621static int 621static int add_dataflash_otp(struct spi_device *spi, char *name, int nr_pages,
622add_dataflash_otp(struct spi_device *spi, char *name, 622 int pagesize, int pageoffset, char revision)
623 int nr_pages, int pagesize, int pageoffset, char revision)
624{ 623{
625 struct dataflash *priv; 624 struct dataflash *priv;
626 struct mtd_info *device; 625 struct mtd_info *device;
@@ -679,9 +678,8 @@ add_dataflash_otp(struct spi_device *spi, char *name,
679 return err; 678 return err;
680} 679}
681 680
682static inline int 681static inline int add_dataflash(struct spi_device *spi, char *name,
683add_dataflash(struct spi_device *spi, char *name, 682 int nr_pages, int pagesize, int pageoffset)
684 int nr_pages, int pagesize, int pageoffset)
685{ 683{
686 return add_dataflash_otp(spi, name, nr_pages, pagesize, 684 return add_dataflash_otp(spi, name, nr_pages, pagesize,
687 pageoffset, 0); 685 pageoffset, 0);