microblaze: Use static const char * const where possible
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Michal Simek <monstr@monstr.eu>
This commit is contained in:
committed by
Michal Simek
parent
099a2f4284
commit
92ee8bd468
@@ -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]);
|
||||
|
Reference in New Issue
Block a user