diff options
Diffstat (limited to 'drivers/mtd/devices/mtd_dataflash.c')
-rw-r--r-- | drivers/mtd/devices/mtd_dataflash.c | 10 |
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 | */ |
621 | static int | 621 | static int add_dataflash_otp(struct spi_device *spi, char *name, int nr_pages, |
622 | add_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 | ||
682 | static inline int | 681 | static inline int add_dataflash(struct spi_device *spi, char *name, |
683 | add_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); |