diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2012-11-14 22:37:12 +0000 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2012-11-17 12:05:57 +0000 |
commit | c22618a11d1ba2966bd2cfd5e4918ed4f2dad13e (patch) | |
tree | e317e1413afd8f80ea4ddc036703ff447c1c0901 /arch/powerpc/sysdev | |
parent | 31982e52f0f5d6d51e69d5c4c4a7be5d52307c6e (diff) | |
download | kernel_goldelico_gta04-c22618a11d1ba2966bd2cfd5e4918ed4f2dad13e.zip kernel_goldelico_gta04-c22618a11d1ba2966bd2cfd5e4918ed4f2dad13e.tar.gz kernel_goldelico_gta04-c22618a11d1ba2966bd2cfd5e4918ed4f2dad13e.tar.bz2 |
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>
Diffstat (limited to 'arch/powerpc/sysdev')
-rw-r--r-- | arch/powerpc/sysdev/fsl_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/fsl_pci.c b/arch/powerpc/sysdev/fsl_pci.c index ffb93ae..01b62a6 100644 --- a/arch/powerpc/sysdev/fsl_pci.c +++ b/arch/powerpc/sysdev/fsl_pci.c @@ -136,7 +136,7 @@ static void __init setup_pci_atmu(struct pci_controller *hose, u32 pcicsrbar = 0, pcicsrbar_sz; u32 piwar = PIWAR_EN | PIWAR_PF | PIWAR_TGI_LOCAL | PIWAR_READ_SNOOP | PIWAR_WRITE_SNOOP; - char *name = hose->dn->full_name; + const char *name = hose->dn->full_name; const u64 *reg; int len; |