Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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

parent 504a3e72
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;