mtd: rawnand: fsl_elbc: return meaningful values
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 25 Jul 2018 08:35:57 +0000 (10:35 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 31 Jul 2018 07:45:56 +0000 (09:45 +0200)
Return -ENOTSUPP instead of -1 from ->chip_init_tail() before migrating
this driver to use nand_scan() and transform this function to be a
callback run by the core.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/fsl_elbc_nand.c

index 0aa54a949653b4f10333db0dae33699a9e9cbb67..b5637dce6d475295fe6a51eb3abb6c867346b74b 100644 (file)
@@ -700,7 +700,7 @@ static int fsl_elbc_chip_init_tail(struct mtd_info *mtd)
                dev_err(priv->dev,
                        "fsl_elbc_init: page size %d is not supported\n",
                        mtd->writesize);
-               return -1;
+               return -ENOTSUPP;
        }
 
        return 0;