Commit 99dc9d95 authored by Miquel Raynal's avatar Miquel Raynal

mtd: rawnand: fsl_elbc: return meaningful values

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: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
parent d03af162
...@@ -700,7 +700,7 @@ static int fsl_elbc_chip_init_tail(struct mtd_info *mtd) ...@@ -700,7 +700,7 @@ static int fsl_elbc_chip_init_tail(struct mtd_info *mtd)
dev_err(priv->dev, dev_err(priv->dev,
"fsl_elbc_init: page size %d is not supported\n", "fsl_elbc_init: page size %d is not supported\n",
mtd->writesize); mtd->writesize);
return -1; return -ENOTSUPP;
} }
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment