Skip to contentSkip to conversation

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

PATCH Kay Sievers 1 participant 1 message Jan 25, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

From: Kay Sievers <[email protected]>
Subject: mtd: struct device - replace bus_id with dev_name(), dev_set_name()

---
 drivers/mtd/nand/ndfc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/nand/ndfc.c +1 -1
@@ -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;