OSDN Git Service

mtd: cmdlinepart: allow small partitions
authorBrian Norris <computersforpeace@gmail.com>
Fri, 19 Jun 2015 20:10:06 +0000 (13:10 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 29 Sep 2015 01:37:31 +0000 (18:37 -0700)
commitd855d23b56a5d67a7727dc275a86aaba290d7c55
treeba38c054a8370a5492ce4de8ce7fe55cc11707d6
parentadf508c347c3a5d66d7610412467e2a03924485b
mtd: cmdlinepart: allow small partitions

I'm not sure why we have a PAGE_SIZE restriction on this partition
parser.

If we really wanted the restriction, I would expect it to be a
restriction for *all* parsers, so we'd move it to the MTD core

At any rate, while small partitions may not be useful (they'll often be
smaller than the eraseblock size and therefore can only be used
read-only), they still have use as a read-only partition.

This restriction is especially annoying because it aborts the entire
MTD's cmdline parsing, leaving it unpartitioned.

So, let's kill the restriction and only check for zero-sized partitions,
which I expect we don't want to allow.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/cmdlinepart.c