aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/fdt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c
index c8be32644c85..135b8083212a 100644
--- a/drivers/of/fdt.c
+++ b/drivers/of/fdt.c
@@ -460,7 +460,7 @@ int __init of_scan_flat_dt(int (*it)(unsigned long node,
460 460
461 do { 461 do {
462 u32 tag = be32_to_cpup((__be32 *)p); 462 u32 tag = be32_to_cpup((__be32 *)p);
463 char *pathp; 463 const char *pathp;
464 464
465 p += 4; 465 p += 4;
466 if (tag == OF_DT_END_NODE) { 466 if (tag == OF_DT_END_NODE) {
@@ -488,7 +488,7 @@ int __init of_scan_flat_dt(int (*it)(unsigned long node,
488 pathp = (char *)p; 488 pathp = (char *)p;
489 p = ALIGN(p + strlen(pathp) + 1, 4); 489 p = ALIGN(p + strlen(pathp) + 1, 4);
490 if ((*pathp) == '/') { 490 if ((*pathp) == '/') {
491 char *lp, *np; 491 const char *lp, *np;
492 for (lp = NULL, np = pathp; *np; np++) 492 for (lp = NULL, np = pathp; *np; np++)
493 if ((*np) == '/') 493 if ((*np) == '/')
494 lp = np+1; 494 lp = np+1;