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

Commit 93919d38 authored by Hamish Moffatt's avatar Hamish Moffatt Committed by David Woodhouse
Browse files

[MTD] [NAND] plat_nand: set mtd->name



This patch sets mtd->name to the platform bus ID in the plat_nand
driver, so that you can specify partitions readily with mtdparts=.

Currently it relies on nand_base filling in the name from the device,
which results in names like "NAND 256MiB 3,3V 8-bit", that you can't
use with cmdlineparts.

Signed-off-by: default avatarHamish Moffatt <hamish@cloud.net.au>
Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent 1938de46
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -54,6 +54,7 @@ static int __init plat_nand_probe(struct platform_device *pdev)
	data->chip.priv = &data;
	data->mtd.priv = &data->chip;
	data->mtd.owner = THIS_MODULE;
	data->mtd.name = pdev->dev.bus_id;

	data->chip.IO_ADDR_R = data->io_base;
	data->chip.IO_ADDR_W = data->io_base;