summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-03-24 17:26:10 -0700
committerDavid Woodhouse <David.Woodhouse@intel.com>2009-04-06 07:24:02 -0700
commit30bbf1406714cf464c56e96e4ad6a291907f5023 (patch)
tree79903768f3b71bca4bedac51a9dfed848e5aa703 /drivers/mtd
parent504a3e72208fc6a65924426ff5693982590bccdc (diff)
downloadlinux-3.10-30bbf1406714cf464c56e96e4ad6a291907f5023.tar.gz
linux-3.10-30bbf1406714cf464c56e96e4ad6a291907f5023.tar.bz2
linux-3.10-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/ndfc.c b/drivers/mtd/nand/ndfc.c
index 582cf80f555..89bf85af642 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;