diff options
author | Baruch Siach <baruch@tkos.co.il> | 2012-12-23 13:10:50 +0200 |
---|---|---|
committer | Huang Shijie <b32955@freescale.com> | 2013-05-28 16:45:25 +0800 |
commit | cba3387fc0952505d9f18e99eee5a0c5b349d4e0 (patch) | |
tree | 32a77c260a29f23edb083278ff705f6b68500f5b /Documentation/devicetree/bindings/vendor-prefixes.txt | |
parent | b1e7b5d99450f400c9d861fd30eae9c96d1c621e (diff) |
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>
Signed-off-by: Huang Shijie <b32955@freescale.com>
Diffstat (limited to 'Documentation/devicetree/bindings/vendor-prefixes.txt')
0 files changed, 0 insertions, 0 deletions