aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/ar7
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-11-27 16:19:58 -0500
committerRalf Baechle <ralf@linux-mips.org>2012-12-13 12:15:23 -0500
commitdcb96a4e36425d563cefd44a20d3386e02a547f3 (patch)
tree0db0a50ee0be86f17b8a8cf244d7be7b774ddb18 /arch/mips/ar7
parentd08be0dbe80d03dc132e017167795696f021b5a5 (diff)
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>
Diffstat (limited to 'arch/mips/ar7')
-rw-r--r--arch/mips/ar7/platform.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/ar7/platform.c b/arch/mips/ar7/platform.c
index 1bbc24b08685..7477fd2127ad 100644
--- a/arch/mips/ar7/platform.c
+++ b/arch/mips/ar7/platform.c
@@ -202,8 +202,11 @@ static struct resource physmap_flash_resource = {
202 .end = 0x107fffff, 202 .end = 0x107fffff,
203}; 203};
204 204
205static const char *ar7_probe_types[] = { "ar7part", NULL };
206
205static struct physmap_flash_data physmap_flash_data = { 207static struct physmap_flash_data physmap_flash_data = {
206 .width = 2, 208 .width = 2,
209 .part_probe_types = ar7_probe_types,
207}; 210};
208 211
209static struct platform_device physmap_flash = { 212static struct platform_device physmap_flash = {