]> git.baikalelectronics.ru Git - kernel.git/commit
[MTD] mtdoops: allow MTD selection by name
authorAdrian Hunter <ext-adrian.hunter@nokia.com>
Mon, 16 Feb 2009 16:21:35 +0000 (18:21 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 20 Mar 2009 18:38:58 +0000 (18:38 +0000)
commit257eefe39c4d30306aff2d4acb1db905dd187a86
treecaac8295d3afbab87b593748c67344737c49c554
parente57ec181ed7bf7d40130c84ef154adc02d5022db
[MTD] mtdoops: allow MTD selection by name

MTD's have both an index number and a name.  Formerly,
the MTD selected for mtdoops was done only by index
number.  With this patch, a name can be used instead.

For example, the kernel command line:

console=ttyMTD5

selects MTD 5 for mtdoops.  But now this is also possible:

console=ttyMTD,log

which selects the MTD named "log" for mtdoops.

This has the advantage that partitions can be added or
removed that would affect the MTD index number but not the
name, without having to then change the kernel command line.

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Acked-by: Richard Purdie <rpurdie@linux.intel.com>
Acked-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/mtdoops.c