public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* mtd: struct device - replace bus_id with dev_name(), dev_set_name()
@ 2009-01-25 22:51 Kay Sievers
  0 siblings, 0 replies; only message in thread
From: Kay Sievers @ 2009-01-25 22:51 UTC (permalink / raw)
  To: David Woodhouse; +Cc: gregkh, linux-mtd

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(-)

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-01-25 22:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-25 22:51 mtd: struct device - replace bus_id with dev_name(), dev_set_name() Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox