mtd: bcm63xxpart: handle Broadcom partition order
authorJonas Gorski <jonas.gorski@gmail.com>
Thu, 19 Apr 2012 11:15:57 +0000 (13:15 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 14 May 2012 03:55:03 +0000 (22:55 -0500)
commit5329d67cc32c0306426dc4bc4b5e66a36cb87ce0
tree51e5c892f9c22ac145f12fc1ad54233ed91f4dde
parenta9c465f07c2dcd515d20b96f93470762f9ae08b6
mtd: bcm63xxpart: handle Broadcom partition order

The original Broadcom partition order has the root fs in front of the
kernel, which resulted in miscalculated partition sizes.
Detect when such an image is on the flash and also reorder the partitions
accordingly.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Acked-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/bcm63xxpart.c