Skip to content

Commit

Permalink
[MTD] [NAND] plat_nand: set mtd->name
Browse files Browse the repository at this point in the history
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: Hamish Moffatt <hamish@cloud.net.au>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
Hamish Moffatt authored and David Woodhouse committed Apr 22, 2008
1 parent 1938de4 commit 93919d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mtd/nand/plat_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 93919d3

Please sign in to comment.