]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
mtd: struct device - replace bus_id with dev_name(), dev_set_name()
authorKay Sievers <kay.sievers@vrfy.org>
Tue, 24 Mar 2009 23:38:21 +0000 (16:38 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 24 Mar 2009 23:38:21 +0000 (16:38 -0700)
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

index 582cf80f555a5ba99ac1a79abf1952b65114966d..89bf85af642cb630b641a73ff966dd73aa60811a 100644 (file)
@@ -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;