[PATCH 05/46] mtd: Don't print a scary message when trying to remove a busy MTD
Daniel Walter
dwalter at sigma-star.at
Wed Aug 31 00:28:12 PDT 2016
From: Richard Weinberger <richard at nod.at>
Just return -EBUSY and everything is fine.
Signed-off-by: Richard Weinberger <richard at nod.at>
---
drivers/mtd/mtdcore.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c
index b8205ec..32f1088 100644
--- a/drivers/mtd/mtdcore.c
+++ b/drivers/mtd/mtdcore.c
@@ -500,8 +500,6 @@ int del_mtd_device(struct mtd_info *mtd)
}
if (mtd->usecount) {
- printk(KERN_NOTICE "Removing MTD device #%d (%s) with use count %d\n",
- mtd->index, mtd->name, mtd->usecount);
ret = -EBUSY;
} else {
/* No need to get a refcount on the module containing
--
2.8.3
More information about the linux-mtd
mailing list