[PATCH] mtdoops: allow MTD selection by name

Richard Purdie rpurdie at rpsys.net
Tue Feb 17 08:28:13 EST 2009


On Mon, 2009-02-16 at 18:21 +0200, Adrian Hunter wrote:
> 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 at nokia.com>
Acked-by: Richard Purdie <rpurdie at linux.intel.com>

-- 
Richard Purdie
Intel Open Source Technology Centre




More information about the linux-mtd mailing list