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-Tag: firefly_0821_release~14718^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=30bbf1406714cf464c56e96e4ad6a291907f5023;p=firefly-linux-kernel-4.4.55.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 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;