[PATCH 3/3] cfi: make hardware device parent of mtd device
Sascha Hauer
s.hauer at pengutronix.de
Mon May 27 04:55:03 EDT 2013
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
drivers/mtd/nor/cfi_flash.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mtd/nor/cfi_flash.c b/drivers/mtd/nor/cfi_flash.c
index 645d93a..3b2346e 100644
--- a/drivers/mtd/nor/cfi_flash.c
+++ b/drivers/mtd/nor/cfi_flash.c
@@ -962,6 +962,7 @@ static void cfi_init_mtd(struct flash_info *info)
mtd->numeraseregions = info->numeraseregions;
mtd->flags = MTD_CAP_NORFLASH;
mtd->type = MTD_NORFLASH;
+ mtd->parent = info->dev;
add_mtd_device(mtd, "nor");
}
--
1.8.2.rc2
More information about the barebox
mailing list