diff options
-rw-r--r-- | arch/arm/include/asm/mach/arch.h | 2 | ||||
-rw-r--r-- | drivers/of/fdt.c | 4 | ||||
-rw-r--r-- | include/linux/of_fdt.h | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/include/asm/mach/arch.h b/arch/arm/include/asm/mach/arch.h index 2b0efc3104ac..02a718adb598 100644 --- a/arch/arm/include/asm/mach/arch.h +++ b/arch/arm/include/asm/mach/arch.h | |||
@@ -19,7 +19,7 @@ struct machine_desc { | |||
19 | unsigned int nr; /* architecture number */ | 19 | unsigned int nr; /* architecture number */ |
20 | const char *name; /* architecture name */ | 20 | const char *name; /* architecture name */ |
21 | unsigned long atag_offset; /* tagged list (relative) */ | 21 | unsigned long atag_offset; /* tagged list (relative) */ |
22 | const char **dt_compat; /* array of device tree | 22 | const char *const *dt_compat; /* array of device tree |
23 | * 'compatible' strings */ | 23 | * 'compatible' strings */ |
24 | 24 | ||
25 | unsigned int nr_irqs; /* number of IRQs */ | 25 | unsigned int nr_irqs; /* number of IRQs */ |
diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index fd85fa298e0f..7dc8e6da858d 100644 --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c | |||
@@ -107,7 +107,7 @@ int of_fdt_is_compatible(struct boot_param_header *blob, | |||
107 | * of_fdt_match - Return true if node matches a list of compatible values | 107 | * of_fdt_match - Return true if node matches a list of compatible values |
108 | */ | 108 | */ |
109 | int of_fdt_match(struct boot_param_header *blob, unsigned long node, | 109 | int of_fdt_match(struct boot_param_header *blob, unsigned long node, |
110 | const char **compat) | 110 | const char *const *compat) |
111 | { | 111 | { |
112 | unsigned int tmp, score = 0; | 112 | unsigned int tmp, score = 0; |
113 | 113 | ||
@@ -541,7 +541,7 @@ int __init of_flat_dt_is_compatible(unsigned long node, const char *compat) | |||
541 | /** | 541 | /** |
542 | * of_flat_dt_match - Return true if node matches a list of compatible values | 542 | * of_flat_dt_match - Return true if node matches a list of compatible values |
543 | */ | 543 | */ |
544 | int __init of_flat_dt_match(unsigned long node, const char **compat) | 544 | int __init of_flat_dt_match(unsigned long node, const char *const *compat) |
545 | { | 545 | { |
546 | return of_fdt_match(initial_boot_params, node, compat); | 546 | return of_fdt_match(initial_boot_params, node, compat); |
547 | } | 547 | } |
diff --git a/include/linux/of_fdt.h b/include/linux/of_fdt.h index c84d900fbbb3..ed136ad698ce 100644 --- a/include/linux/of_fdt.h +++ b/include/linux/of_fdt.h | |||
@@ -71,7 +71,7 @@ extern int of_fdt_is_compatible(struct boot_param_header *blob, | |||
71 | unsigned long node, | 71 | unsigned long node, |
72 | const char *compat); | 72 | const char *compat); |
73 | extern int of_fdt_match(struct boot_param_header *blob, unsigned long node, | 73 | extern int of_fdt_match(struct boot_param_header *blob, unsigned long node, |
74 | const char **compat); | 74 | const char *const *compat); |
75 | extern void of_fdt_unflatten_tree(unsigned long *blob, | 75 | extern void of_fdt_unflatten_tree(unsigned long *blob, |
76 | struct device_node **mynodes); | 76 | struct device_node **mynodes); |
77 | 77 | ||
@@ -88,7 +88,7 @@ extern int of_scan_flat_dt(int (*it)(unsigned long node, const char *uname, | |||
88 | extern void *of_get_flat_dt_prop(unsigned long node, const char *name, | 88 | extern void *of_get_flat_dt_prop(unsigned long node, const char *name, |
89 | unsigned long *size); | 89 | unsigned long *size); |
90 | extern int of_flat_dt_is_compatible(unsigned long node, const char *name); | 90 | extern int of_flat_dt_is_compatible(unsigned long node, const char *name); |
91 | extern int of_flat_dt_match(unsigned long node, const char **matches); | 91 | extern int of_flat_dt_match(unsigned long node, const char *const *matches); |
92 | extern unsigned long of_get_flat_dt_root(void); | 92 | extern unsigned long of_get_flat_dt_root(void); |
93 | 93 | ||
94 | extern int early_init_dt_scan_chosen(unsigned long node, const char *uname, | 94 | extern int early_init_dt_scan_chosen(unsigned long node, const char *uname, |