[MTD] struct device - replace bus_id with dev_name(), dev_set_name()

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon Apr 6 10:59:02 EDT 2009


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=30bbf1406714cf464c56e96e4ad6a291907f5023
Commit:     30bbf1406714cf464c56e96e4ad6a291907f5023
Parent:     504a3e72208fc6a65924426ff5693982590bccdc
Author:     Kay Sievers <kay.sievers at vrfy.org>
AuthorDate: Tue Mar 24 17:26:10 2009 -0700
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Apr 6 07:24:02 2009 -0700

    [MTD] struct device - replace bus_id with dev_name(), dev_set_name()
    
    Acked-by: Greg Kroah-Hartman <gregkh at suse.de>
    Signed-off-by: Kay Sievers <kay.sievers at vrfy.org>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/nand/ndfc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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;



More information about the linux-mtd-cvs mailing list