From: Florian Fainelli Date: Tue, 27 Nov 2012 21:19:58 +0000 (+0100) Subject: MIPS: AR7: use part_probe_types to specificy the partition parser to use X-Git-Tag: v3.8-rc1~109^2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dcb96a4e36425d563cefd44a20d3386e02a547f3;p=platform%2Fkernel%2Flinux-stable.git MIPS: AR7: use part_probe_types to specificy the partition parser to use 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 Cc: blogic@openwrt.org Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/4654/ Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/ar7/platform.c b/arch/mips/ar7/platform.c index 1bbc24b..7477fd21 100644 --- a/arch/mips/ar7/platform.c +++ b/arch/mips/ar7/platform.c @@ -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 = {