[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <245d486e11127ecd581d2676482af8dfc87db4fe.1474450296.git.dwalter@sigma-star.at>
Date: Wed, 21 Sep 2016 11:49:51 +0200
From: Daniel Walter <dwalter@...ma-star.at>
To: linux-mtd@...ts.infradead.org
Cc: linux-kernel@...r.kernel.org, computersforpeace@...il.com,
dwmw2@...radead.org, boris.brezillon@...e-electrons.com,
Richard Weinberger <richard@....at>
Subject: [PATCH v2 16/46] mtd: nandsim: Print error when backend init failed
From: Richard Weinberger <richard@....at>
Signed-off-by: Richard Weinberger <richard@....at>
---
drivers/mtd/nand/nandsim.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/nandsim.c b/drivers/mtd/nand/nandsim.c
index 633872a..e333c5c 100644
--- a/drivers/mtd/nand/nandsim.c
+++ b/drivers/mtd/nand/nandsim.c
@@ -894,8 +894,10 @@ static int init_nandsim(struct mtd_info *mtd, struct nandsim_params *nsparam)
ns->bops = nsparam->bops;
- if ((ret = ns->bops->init(ns, nsparam)) != 0)
+ if ((ret = ns->bops->init(ns, nsparam)) != 0) {
+ NS_ERR("Unable to initialize simulator backend: %i\n", ret);
return ret;
+ }
/* Allocate / initialize the internal buffer */
ns->buf.byte = kmalloc(ns->geom.pgszoob, GFP_KERNEL);
--
2.8.3
Powered by blists - more mailing lists