public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] MTD: MIPS: lantiq: reintroduce support for cmdline partitions
@ 2012-02-23 16:59 John Crispin
  2012-03-09  8:40 ` Artem Bityutskiy
  2012-03-09 11:27 ` Artem Bityutskiy
  0 siblings, 2 replies; 9+ messages in thread
From: John Crispin @ 2012-02-23 16:59 UTC (permalink / raw)
  To: David Woodhouse; +Cc: Daniel Schwierzeck, linux-mtd, John Crispin

From: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>

Since commit ca97dec2ab5c87e9fbdf7e882e1820004a3966fa the
command line parsing of MTD partitions does not work anymore.

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
Signed-off-by: John Crispin <blogic@openwrt.org>
---
 drivers/mtd/maps/lantiq-flash.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/maps/lantiq-flash.c b/drivers/mtd/maps/lantiq-flash.c
index 395ebfe..ccc6954 100644
--- a/drivers/mtd/maps/lantiq-flash.c
+++ b/drivers/mtd/maps/lantiq-flash.c
@@ -45,6 +45,7 @@ struct ltq_mtd {
 };
 
 static char ltq_map_name[] = "ltq_nor";
+static const char *ltq_probe_types[] __devinitconst = { "cmdlinepart", NULL };
 
 static map_word
 ltq_read16(struct map_info *map, unsigned long adr)
@@ -168,7 +169,7 @@ ltq_mtd_probe(struct platform_device *pdev)
 	cfi->addr_unlock1 ^= 1;
 	cfi->addr_unlock2 ^= 1;
 
-	err = mtd_device_parse_register(ltq_mtd->mtd, NULL, 0,
+	err = mtd_device_parse_register(ltq_mtd->mtd, ltq_probe_types, 0,
 			ltq_mtd_data->parts, ltq_mtd_data->nr_parts);
 	if (err) {
 		dev_err(&pdev->dev, "failed to add partitions\n");
-- 
1.7.7.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-03-09 11:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-23 16:59 [PATCH] MTD: MIPS: lantiq: reintroduce support for cmdline partitions John Crispin
2012-03-09  8:40 ` Artem Bityutskiy
2012-03-09  8:58   ` John Crispin
2012-03-09  9:08     ` Artem Bityutskiy
2012-03-09 10:59       ` John Crispin
2012-03-09 11:16         ` Artem Bityutskiy
2012-03-09 11:09     ` Artem Bityutskiy
2012-03-09 11:27 ` Artem Bityutskiy
2012-03-09 11:29   ` John Crispin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox