浏览代码

[SPARC]: Make device_node name and type const

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stephen Rothwell 18 年之前
父节点
当前提交
711b360d64
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      include/asm-sparc/prom.h
  2. 2 2
      include/asm-sparc64/prom.h

+ 2 - 2
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;

+ 2 - 2
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;