Baruch Siach 7dfe4be351 mtd: physmap_of: fix cmdline partition method w/o linux, mtd-name
Commit d68cbdd4fb (mtd: physmap_of: allow to specify the mtd name for retro
compatiblity) broke cmdline partitioning using dev_name() in the kernel command
line.  of_property_read_string() does not touch mtd_name when linux,mtd-name is
not present in the device tree, which causes map.name to be set to a random
value.  Fix this by initializing mtd_name to NULL.

Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2013-01-19 09:53:45 +00:00
..
2012-11-22 12:07:03 +02:00
2012-03-27 00:53:20 +01:00
2012-03-27 00:53:20 +01:00
2012-03-27 00:53:20 +01:00
2012-11-22 12:07:03 +02:00
2012-03-27 00:53:20 +01:00
2012-12-19 12:47:41 -08:00
2012-11-22 12:07:03 +02:00
2012-12-19 12:47:41 -08:00
2008-06-04 17:50:17 +01:00
2012-11-22 12:07:03 +02:00
2012-03-30 17:31:56 -07:00
2012-03-27 00:53:20 +01:00
2012-11-22 12:07:03 +02:00
2012-11-22 12:07:03 +02:00
2012-11-22 12:07:03 +02:00
2012-11-22 12:07:03 +02:00
2012-11-22 12:07:03 +02:00