Commit 30bbf140 authored by Kay Sievers's avatar Kay Sievers Committed by David Woodhouse

[MTD] struct device - replace bus_id with dev_name(), dev_set_name()

Acked-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: default avatarKay Sievers <kay.sievers@vrfy.org>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 504a3e72
...@@ -187,7 +187,7 @@ static int ndfc_chip_init(struct ndfc_controller *ndfc, ...@@ -187,7 +187,7 @@ static int ndfc_chip_init(struct ndfc_controller *ndfc,
return -ENODEV; return -ENODEV;
ndfc->mtd.name = kasprintf(GFP_KERNEL, "%s.%s", 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) { if (!ndfc->mtd.name) {
ret = -ENOMEM; ret = -ENOMEM;
goto err; goto err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment