Thread (109 messages) 109 messages, 10 authors, 2007-04-27
STALE6995d

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

From: Stephen Rothwell <hidden>
Date: 2007-04-03 13:23:44
Subsystem: the rest · Maintainer: Linus Torvalds

Signed-off-by: Stephen Rothwell <redacted>
---
 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@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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help