Patchwork [06/61] mtd: struct device - replace bus_id with dev_name(), dev_set_name()

login
register
mail settings
Submitter gregkh@suse.de
Date March 25, 2009, 12:26 a.m.
Message ID <1237940825-22904-6-git-send-email-gregkh@suse.de>
Download mbox | patch
Permalink /patch/25044/
State New, archived
Headers show

Comments

gregkh@suse.de - March 25, 2009, 12:26 a.m.
From: Kay Sievers <kay.sievers@vrfy.org>

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

Patch

diff --git a/drivers/mtd/nand/ndfc.c b/drivers/mtd/nand/ndfc.c
index 582cf80..89bf85a 100644
--- a/drivers/mtd/nand/ndfc.c
+++ b/drivers/mtd/nand/ndfc.c
@@ -187,7 +187,7 @@  static int ndfc_chip_init(struct ndfc_controller *ndfc,
 		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;