diff options
author | Joe Perches <joe@perches.com> | 2010-09-14 00:23:49 -0400 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2010-10-21 01:51:45 -0400 |
commit | 92ee8bd468b43938319d6ff51afb071b6e9ef758 (patch) | |
tree | 0fbd7b5f7c5f84cba44398b8fe60782fafba732a /arch/microblaze | |
parent | 099a2f4284eba5da2708d0e8fe0797dc095d47ca (diff) |
microblaze: Use static const char * const where possible
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze')
-rw-r--r-- | arch/microblaze/kernel/heartbeat.c | 10 | ||||
-rw-r--r-- | arch/microblaze/kernel/intc.c | 2 | ||||
-rw-r--r-- | arch/microblaze/kernel/timer.c | 12 |
3 files changed, 12 insertions, 12 deletions
diff --git a/arch/microblaze/kernel/heartbeat.c b/arch/microblaze/kernel/heartbeat.c index 522751737cfa..f8bc2d79ee35 100644 --- a/arch/microblaze/kernel/heartbeat.c +++ b/arch/microblaze/kernel/heartbeat.c | |||
@@ -47,11 +47,11 @@ void setup_heartbeat(void) | |||
47 | struct device_node *gpio = NULL; | 47 | struct device_node *gpio = NULL; |
48 | int *prop; | 48 | int *prop; |
49 | int j; | 49 | int j; |
50 | char *gpio_list[] = { | 50 | const char * const gpio_list[] = { |
51 | "xlnx,xps-gpio-1.00.a", | 51 | "xlnx,xps-gpio-1.00.a", |
52 | "xlnx,opb-gpio-1.00.a", | 52 | "xlnx,opb-gpio-1.00.a", |
53 | NULL | 53 | NULL |
54 | }; | 54 | }; |
55 | 55 | ||
56 | for (j = 0; gpio_list[j] != NULL; j++) { | 56 | for (j = 0; gpio_list[j] != NULL; j++) { |
57 | gpio = of_find_compatible_node(NULL, NULL, gpio_list[j]); | 57 | gpio = of_find_compatible_node(NULL, NULL, gpio_list[j]); |
diff --git a/arch/microblaze/kernel/intc.c b/arch/microblaze/kernel/intc.c index 03172c1da770..e1cf0819d753 100644 --- a/arch/microblaze/kernel/intc.c +++ b/arch/microblaze/kernel/intc.c | |||
@@ -126,7 +126,7 @@ void __init init_IRQ(void) | |||
126 | 0 | 126 | 0 |
127 | }; | 127 | }; |
128 | #endif | 128 | #endif |
129 | static char *intc_list[] = { | 129 | const char * const intc_list[] = { |
130 | "xlnx,xps-intc-1.00.a", | 130 | "xlnx,xps-intc-1.00.a", |
131 | "xlnx,opb-intc-1.00.c", | 131 | "xlnx,opb-intc-1.00.c", |
132 | "xlnx,opb-intc-1.00.b", | 132 | "xlnx,opb-intc-1.00.b", |
diff --git a/arch/microblaze/kernel/timer.c b/arch/microblaze/kernel/timer.c index ec7df67006ba..da9d1e56108b 100644 --- a/arch/microblaze/kernel/timer.c +++ b/arch/microblaze/kernel/timer.c | |||
@@ -258,12 +258,12 @@ void __init time_init(void) | |||
258 | 0 | 258 | 0 |
259 | }; | 259 | }; |
260 | #endif | 260 | #endif |
261 | char *timer_list[] = { | 261 | const char * const timer_list[] = { |
262 | "xlnx,xps-timer-1.00.a", | 262 | "xlnx,xps-timer-1.00.a", |
263 | "xlnx,opb-timer-1.00.b", | 263 | "xlnx,opb-timer-1.00.b", |
264 | "xlnx,opb-timer-1.00.a", | 264 | "xlnx,opb-timer-1.00.a", |
265 | NULL | 265 | NULL |
266 | }; | 266 | }; |
267 | 267 | ||
268 | for (i = 0; timer_list[i] != NULL; i++) { | 268 | for (i = 0; timer_list[i] != NULL; i++) { |
269 | timer = of_find_compatible_node(NULL, NULL, timer_list[i]); | 269 | timer = of_find_compatible_node(NULL, NULL, timer_list[i]); |