diff options
Diffstat (limited to 'drivers/mtd/nand/gpmi-nand/gpmi-nand.c')
-rw-r--r-- | drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c index 6574c6f51b8b..d6fa8f4779ce 100644 --- a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c +++ b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c | |||
@@ -930,7 +930,7 @@ exit_nfc: | |||
930 | return ret; | 930 | return ret; |
931 | } | 931 | } |
932 | 932 | ||
933 | static void gpmi_ecc_write_page(struct mtd_info *mtd, struct nand_chip *chip, | 933 | static int gpmi_ecc_write_page(struct mtd_info *mtd, struct nand_chip *chip, |
934 | const uint8_t *buf, int oob_required) | 934 | const uint8_t *buf, int oob_required) |
935 | { | 935 | { |
936 | struct gpmi_nand_data *this = chip->priv; | 936 | struct gpmi_nand_data *this = chip->priv; |
@@ -972,7 +972,7 @@ static void gpmi_ecc_write_page(struct mtd_info *mtd, struct nand_chip *chip, | |||
972 | &payload_virt, &payload_phys); | 972 | &payload_virt, &payload_phys); |
973 | if (ret) { | 973 | if (ret) { |
974 | pr_err("Inadequate payload DMA buffer\n"); | 974 | pr_err("Inadequate payload DMA buffer\n"); |
975 | return; | 975 | return 0; |
976 | } | 976 | } |
977 | 977 | ||
978 | ret = send_page_prepare(this, | 978 | ret = send_page_prepare(this, |
@@ -1002,6 +1002,8 @@ exit_auxiliary: | |||
1002 | nfc_geo->payload_size, | 1002 | nfc_geo->payload_size, |
1003 | payload_virt, payload_phys); | 1003 | payload_virt, payload_phys); |
1004 | } | 1004 | } |
1005 | |||
1006 | return 0; | ||
1005 | } | 1007 | } |
1006 | 1008 | ||
1007 | /* | 1009 | /* |