mtd: struct device - replace bus_id with dev_name(), dev_set_name()

Kay Sievers kay.sievers at vrfy.org
Sun Jan 25 17:51:40 EST 2009


From: Kay Sievers <kay.sievers at vrfy.org>
Subject: mtd: struct device - replace bus_id with dev_name(), dev_set_name()

Cc: dwmw2 at infradead.org
Cc: linux-mtd at lists.infradead.org
Acked-by: Greg Kroah-Hartman <gregkh at suse.de>
Signed-off-by: Kay Sievers <kay.sievers at vrfy.org>
---
 drivers/mtd/nand/ndfc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/mtd/nand/ndfc.c
+++ b/drivers/mtd/nand/ndfc.c
@@ -187,7 +187,7 @@ static int ndfc_chip_init(struct ndfc_co
 		return -ENODEV;
 
 	ndfc->mtd.name = kasprintf(GFP_KERNEL, "%s.%s",
-				   ndfc->ofdev->dev.bus_id, flash_np->name);
+			dev_name(&ndfc->ofdev->dev), flash_np->name);
 	if (!ndfc->mtd.name) {
 		ret = -ENOMEM;
 		goto err;





More information about the linux-mtd mailing list