Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <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>

authored by

Florian Fainelli and committed by
Ralf Baechle
dcb96a4e d08be0db

+3
+3
arch/mips/ar7/platform.c
··· 202 202 .end = 0x107fffff, 203 203 }; 204 204 205 + static const char *ar7_probe_types[] = { "ar7part", NULL }; 206 + 205 207 static struct physmap_flash_data physmap_flash_data = { 206 208 .width = 2, 209 + .part_probe_types = ar7_probe_types, 207 210 }; 208 211 209 212 static struct platform_device physmap_flash = {