Skip to contentSkip to conversation

MIPS: AR7: use part_probe_types to specificy the partition parser to use

PATCH New Florian Fainelli 1 participant 1 message Nov 27, 2012 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 arch/mips/ar7/platform.c |    3 +++
 1 file changed, 3 insertions(+)
arch/mips/ar7/platform.c +3 -0
index 1bbc24b..7477fd21 100644
@@ -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 = {
Signature · 1 line
1.7.10.4