linux-mips
[Top] [All Lists]

[PATCH] MIPS: AR7: use part_probe_types to specificy the partition parse

To: ralf@linux-mips.org
Subject: [PATCH] MIPS: AR7: use part_probe_types to specificy the partition parser to use
From: Florian Fainelli <florian@openwrt.org>
Date: Tue, 27 Nov 2012 22:19:58 +0100
Cc: blogic@openwrt.org, linux-mips@linux-mips.org, Florian Fainelli <florian@openwrt.org>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Sender: linux-mips-bounce@linux-mips.org
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>
---
 arch/mips/ar7/platform.c |    3 +++
 1 file changed, 3 insertions(+)

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 = {
-- 
1.7.10.4


<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] MIPS: AR7: use part_probe_types to specificy the partition parser to use, Florian Fainelli <=