From: Grant Likely Date: Wed, 14 Nov 2012 22:37:12 +0000 (+0000) Subject: drivers/of: Constify device_node->name and ->path_component_name X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~89^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c22618a11d1ba2966bd2cfd5e4918ed4f2dad13e;p=pandora-kernel.git drivers/of: Constify device_node->name and ->path_component_name Neither of these should ever be changed once set. Make them const and fix up the users that try to modify it in-place. In one case kmalloc+memcpy is replaced with kstrdup() to avoid modifying the string. Build tested with defconfigs on ARM, PowerPC, Sparc, MIPS, x86 among others. Signed-off-by: Grant Likely Acked-by: David S. Miller Cc: Benjamin Herrenschmidt Cc: Julian Calaby --- Reading git-diff-tree failed