[MTD] [NAND] plat_nand: set mtd->name
authorHamish Moffatt <hamish@cloud.net.au>
Fri, 28 Mar 2008 04:00:00 +0000 (15:00 +1100)
committerDavid Woodhouse <dwmw2@infradead.org>
Tue, 22 Apr 2008 20:11:54 +0000 (21:11 +0100)
commit93919d384df98eba02bebd417ecb2f481b3bdcb8
tree6195a891c1f232b30e7ae6593f6ecce910330a4d
parent1938de46cb7e108120ffbf5155678a2a5e05b377
[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: Hamish Moffatt <hamish@cloud.net.au>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/nand/plat_nand.c