Grant Likely c22618a11d 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 <grant.likely@secretlab.ca>
Acked-by: David S. Miller <davem@davemloft.net>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Julian Calaby <julian.calaby@gmail.com>
2012-11-17 12:05:57 +00:00
..
2011-06-07 16:06:34 -07:00
2012-05-27 23:52:45 -07:00
2012-05-11 19:27:46 -07:00
2012-10-05 20:39:04 -07:00
2012-07-26 16:46:15 -07:00
2012-03-28 16:36:34 +02:00
2012-05-27 23:52:44 -07:00
2012-05-14 14:05:09 -07:00
2012-03-28 18:30:03 +01:00
2012-08-18 23:26:19 -07:00
2012-03-28 18:30:03 +01:00
2012-06-01 12:58:52 -04:00
2012-06-01 12:58:52 -04:00
2012-10-28 13:15:09 -07:00
2012-10-28 13:15:09 -07:00
2012-10-09 16:23:06 +09:00
2012-06-24 11:03:52 -07:00