MIPS: AR7: use part_probe_types to specificy the partition parser to use
authorFlorian Fainelli <florian@openwrt.org>
Tue, 27 Nov 2012 21:19:58 +0000 (22:19 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 13 Dec 2012 17:15:23 +0000 (18:15 +0100)
This patch changes the physmap-flash platform data on AR7 to pass the
correct partition parser: ar7part to used by the "physmap-flash" mapping
driver so we get the partitions probed correctly.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Cc: blogic@openwrt.org
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/4654/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/ar7/platform.c

index 1bbc24b086854592ee95ddda56a7254efde92595..7477fd2127ad52316e340da93c82522e2ab98fa7 100644 (file)
@@ -202,8 +202,11 @@ static struct resource physmap_flash_resource = {
        .end    = 0x107fffff,
 };
 
+static const char *ar7_probe_types[] = { "ar7part", NULL };
+
 static struct physmap_flash_data physmap_flash_data = {
        .width  = 2,
+       .part_probe_types = ar7_probe_types,
 };
 
 static struct platform_device physmap_flash = {