]> git.karo-electronics.de Git - linux-beck.git/commit
mtd: OneNAND: OMAP2/3: add support for command line partitioning
authorAdrian Hunter <adrian.hunter@nokia.com>
Wed, 30 Dec 2009 06:40:16 +0000 (07:40 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 6 Jan 2011 15:22:45 +0000 (15:22 +0000)
commit263a8c8635445c0ede3cb22c98a1a12da4672ebc
treee7b4ca9b40573e226d5151f51efd24904415ef83
parentb7b1a29d94c17e4341856381bccb4d17495bea60
mtd: OneNAND: OMAP2/3: add support for command line partitioning

Add the ability to parse MTD partition information from the
kernel command line.

Note that a pointless BUG_ON is removed, as are redundant
calls to 'del_mtd_partitions()' and 'del_mtd_device()'
because they are also done by 'onenand_release()'.

Finally note that 'add_mtd_device()' returns 1 on failure
so the error condition was incorrect.

Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/onenand/omap2.c