]> git.sur5r.net Git - u-boot/blobdiff - drivers/mtd/nand/omap_gpmc.c
mtd: nand: Sync with Linux v4.6
[u-boot] / drivers / mtd / nand / omap_gpmc.c
index cac9eea2c1e1c6c3d5dd1c79d87e8db0685e2b99..37c4341763de7b45d9cc8c264ecd96b81842a516 100644 (file)
@@ -163,7 +163,7 @@ static int __maybe_unused omap_correct_data(struct mtd_info *mtd, uint8_t *dat,
                                return 0;
                        printf("Error: Bad compare! failed\n");
                        /* detected 2 bit error */
-                       return -1;
+                       return -EBADMSG;
                }
        }
        return 0;