diff options
Diffstat (limited to 'drivers/mtd/nand/docg4.c')
-rw-r--r-- | drivers/mtd/nand/docg4.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/mtd/nand/docg4.c b/drivers/mtd/nand/docg4.c index a225e49a5623..0f2ffd7b6c82 100644 --- a/drivers/mtd/nand/docg4.c +++ b/drivers/mtd/nand/docg4.c | |||
@@ -898,7 +898,7 @@ static void docg4_erase_block(struct mtd_info *mtd, int page) | |||
898 | write_nop(docptr); | 898 | write_nop(docptr); |
899 | } | 899 | } |
900 | 900 | ||
901 | static void write_page(struct mtd_info *mtd, struct nand_chip *nand, | 901 | static int write_page(struct mtd_info *mtd, struct nand_chip *nand, |
902 | const uint8_t *buf, bool use_ecc) | 902 | const uint8_t *buf, bool use_ecc) |
903 | { | 903 | { |
904 | struct docg4_priv *doc = nand->priv; | 904 | struct docg4_priv *doc = nand->priv; |
@@ -950,15 +950,17 @@ static void write_page(struct mtd_info *mtd, struct nand_chip *nand, | |||
950 | write_nop(docptr); | 950 | write_nop(docptr); |
951 | writew(0, docptr + DOC_DATAEND); | 951 | writew(0, docptr + DOC_DATAEND); |
952 | write_nop(docptr); | 952 | write_nop(docptr); |
953 | |||
954 | return 0; | ||
953 | } | 955 | } |
954 | 956 | ||
955 | static void docg4_write_page_raw(struct mtd_info *mtd, struct nand_chip *nand, | 957 | static int docg4_write_page_raw(struct mtd_info *mtd, struct nand_chip *nand, |
956 | const uint8_t *buf, int oob_required) | 958 | const uint8_t *buf, int oob_required) |
957 | { | 959 | { |
958 | return write_page(mtd, nand, buf, false); | 960 | return write_page(mtd, nand, buf, false); |
959 | } | 961 | } |
960 | 962 | ||
961 | static void docg4_write_page(struct mtd_info *mtd, struct nand_chip *nand, | 963 | static int docg4_write_page(struct mtd_info *mtd, struct nand_chip *nand, |
962 | const uint8_t *buf, int oob_required) | 964 | const uint8_t *buf, int oob_required) |
963 | { | 965 | { |
964 | return write_page(mtd, nand, buf, true); | 966 | return write_page(mtd, nand, buf, true); |