]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
microblaze: Use static const char * const where possible
authorJoe Perches <joe@perches.com>
Tue, 14 Sep 2010 04:23:49 +0000 (21:23 -0700)
committerMichal Simek <monstr@monstr.eu>
Thu, 21 Oct 2010 05:51:45 +0000 (15:51 +1000)
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/kernel/heartbeat.c
arch/microblaze/kernel/intc.c
arch/microblaze/kernel/timer.c

index 522751737cfad936fe5193a93fd0105c874c04cc..f8bc2d79ee350fffacc5f7ac5a0aa5b57679ea09 100644 (file)
@@ -47,11 +47,11 @@ void setup_heartbeat(void)
        struct device_node *gpio = NULL;
        int *prop;
        int j;
-       char *gpio_list[] = {
-                               "xlnx,xps-gpio-1.00.a",
-                               "xlnx,opb-gpio-1.00.a",
-                               NULL
-                       };
+       const char * const gpio_list[] = {
+               "xlnx,xps-gpio-1.00.a",
+               "xlnx,opb-gpio-1.00.a",
+               NULL
+       };
 
        for (j = 0; gpio_list[j] != NULL; j++) {
                gpio = of_find_compatible_node(NULL, NULL, gpio_list[j]);
index 03172c1da770c69eda75e8c72aca7a648c7ada53..e1cf0819d75329722d2718e698f22e5453ddd7bf 100644 (file)
@@ -126,7 +126,7 @@ void __init init_IRQ(void)
                                0
                        };
 #endif
-       static char *intc_list[] = {
+       const char * const intc_list[] = {
                                "xlnx,xps-intc-1.00.a",
                                "xlnx,opb-intc-1.00.c",
                                "xlnx,opb-intc-1.00.b",
index ec7df67006ba02d1729e632c8a4a56bf2f48a11d..da9d1e56108b0d1bf006144b9f4e678493ab3898 100644 (file)
@@ -258,12 +258,12 @@ void __init time_init(void)
                                0
                        };
 #endif
-       char *timer_list[] = {
-                               "xlnx,xps-timer-1.00.a",
-                               "xlnx,opb-timer-1.00.b",
-                               "xlnx,opb-timer-1.00.a",
-                               NULL
-                       };
+       const char * const timer_list[] = {
+               "xlnx,xps-timer-1.00.a",
+               "xlnx,opb-timer-1.00.b",
+               "xlnx,opb-timer-1.00.a",
+               NULL
+       };
 
        for (i = 0; timer_list[i] != NULL; i++) {
                timer = of_find_compatible_node(NULL, NULL, timer_list[i]);