Normally all device files assoctiated to a mtd device begin with
the chip name itself. Only the mtdoob device is an exception:
it begins with the chip name without the index end ends with the
index. Change the name to be like the other names, i.e. change
nand_oob0 to nand0.oob.

Signed-off-by: Sascha Hauer <s.ha...@pengutronix.de>
---
 drivers/mtd/mtdoob.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/mtdoob.c b/drivers/mtd/mtdoob.c
index 6160ddb..4dcf2f5 100644
--- a/drivers/mtd/mtdoob.c
+++ b/drivers/mtd/mtdoob.c
@@ -79,7 +79,7 @@ static int add_mtdoob_device(struct mtd_info *mtd, const char 
*devname, void **p
        mtdoob = xzalloc(sizeof(*mtdoob));
        mtdoob->cdev.ops = &mtd_ops_oob;
        mtdoob->cdev.size = mtd_div_by_wb(mtd->size, mtd) * mtd->oobsize;
-       mtdoob->cdev.name = asprintf("%s_oob%d", devname, mtd->class_dev.id);
+       mtdoob->cdev.name = asprintf("%s.oob", mtd->cdev.name);
        mtdoob->cdev.priv = mtdoob;
        mtdoob->cdev.dev = &mtd->class_dev;
        mtdoob->mtd = mtd;
-- 
2.7.0.rc3


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to