diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-03-25 01:26:10 +0100 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2009-04-06 16:24:02 +0200 |
commit | 30bbf1406714cf464c56e96e4ad6a291907f5023 (patch) | |
tree | 79903768f3b71bca4bedac51a9dfed848e5aa703 /drivers/mtd | |
parent | [MTD] [NOR] Fixup for Numonyx M29W128 chips (diff) | |
download | linux-30bbf1406714cf464c56e96e4ad6a291907f5023.tar.xz linux-30bbf1406714cf464c56e96e4ad6a291907f5023.zip |
[MTD] struct device - replace bus_id with dev_name(), dev_set_name()
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | 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 582cf80f555a..89bf85af642c 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; |