From: Miquel Raynal Date: Wed, 25 Jul 2018 08:35:57 +0000 (+0200) Subject: mtd: rawnand: fsl_elbc: return meaningful values X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=99dc9d95ec5a20dddb9f4462d576c63bfc06d8ad;p=openwrt%2Fstaging%2Fblogic.git 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: Miquel Raynal --- diff --git a/drivers/mtd/nand/raw/fsl_elbc_nand.c b/drivers/mtd/nand/raw/fsl_elbc_nand.c index 0aa54a949653..b5637dce6d47 100644 --- a/drivers/mtd/nand/raw/fsl_elbc_nand.c +++ b/drivers/mtd/nand/raw/fsl_elbc_nand.c @@ -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;