From: Baruch Siach Date: Sun, 23 Dec 2012 11:10:50 +0000 (+0200) Subject: mtd: physmap_of: fix cmdline partition method w/o linux, mtd-name X-Git-Tag: v3.8-rc7~21^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7dfe4be351e81656ca1068e5d4ead235c7ba94b1;p=pandora-kernel.git 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 Signed-off-by: Baruch Siach Signed-off-by: David Woodhouse --- Reading git-diff-tree failed