From: Kay Sievers Date: Wed, 25 Mar 2009 00:26:10 +0000 (-0700) Subject: [MTD] struct device - replace bus_id with dev_name(), dev_set_name() X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=30bbf1406714cf464c56e96e4ad6a291907f5023;p=linux-2.6-omap-h63xx.git [MTD] struct device - replace bus_id with dev_name(), dev_set_name() Acked-by: Greg Kroah-Hartman Signed-off-by: Kay Sievers Signed-off-by: David Woodhouse --- 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;