* [PATCH] plat_nand: set mtd->name
@ 2008-03-28 4:00 Hamish Moffatt
0 siblings, 0 replies; only message in thread
From: Hamish Moffatt @ 2008-03-28 4:00 UTC (permalink / raw)
To: linux-mtd
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>
--
BTW, most of the NAND drivers appear to use a fixed name, which makes it
hard to use them with mtdparts= if you had multiple devices.
--- drivers/mtd/nand/plat_nand.c (revision 4106)
+++ drivers/mtd/nand/plat_nand.c (working copy)
@@ -54,6 +54,7 @@
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;
--
Hamish Moffatt VK3SB <hamish@debian.org> <hamish@cloud.net.au>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-03-28 4:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-28 4:00 [PATCH] plat_nand: set mtd->name Hamish Moffatt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).