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

login
register
mail settings
Submitter Kay Sievers
Date Jan. 25, 2009, 10:51 p.m.
Message ID <1232923900.2924.15.camel@nga>
Download mbox | patch
Permalink /patch/20220/
State Accepted
Commit c36f1e3301ee9d8045938a2741da7f8e4c7fbbff
Headers show

Comments

Kay Sievers - Jan. 25, 2009, 10:51 p.m.
From: Kay Sievers <kay.sievers@vrfy.org>
Subject: mtd: struct device - replace bus_id with dev_name(), dev_set_name()

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 file changed, 1 insertion(+), 1 deletion(-)

Patch

--- 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;