[PATCH] [SPARC/64] Make device_node name and type const

Stephen Rothwell sfr at canb.auug.org.au
Tue Apr 3 23:24:06 EST 2007


Signed-off-by: Stephen Rothwell <sfr at canb.auug.org.au>
---
 include/asm-sparc/prom.h   |    4 ++--
 include/asm-sparc64/prom.h |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

This produces no new warnings or errors for a sparc64 allmodconfig build.
-- 
Cheers,
Stephen Rothwell                    sfr at canb.auug.org.au

diff --git a/include/asm-sparc/prom.h b/include/asm-sparc/prom.h
index 030461d..c239a80 100644
--- a/include/asm-sparc/prom.h
+++ b/include/asm-sparc/prom.h
@@ -35,8 +35,8 @@ struct property {
 };
 
 struct device_node {
-	char	*name;
-	char	*type;
+	const char	*name;
+	const char	*type;
 	phandle	node;
 	char	*path_component_name;
 	char	*full_name;
diff --git a/include/asm-sparc64/prom.h b/include/asm-sparc64/prom.h
index dd0a6cd..88e62cc 100644
--- a/include/asm-sparc64/prom.h
+++ b/include/asm-sparc64/prom.h
@@ -36,8 +36,8 @@ struct property {
 
 struct of_irq_controller;
 struct device_node {
-	char	*name;
-	char	*type;
+	const char	*name;
+	const char	*type;
 	phandle	node;
 	char	*path_component_name;
 	char	*full_name;
-- 
1.5.0.3




More information about the Linuxppc-dev mailing list