]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers-of-fdtc-re-use-kernels-kbasename-fix
authorGrant Likely <grant.likely@secretlab.ca>
Thu, 15 Nov 2012 02:38:24 +0000 (13:38 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 15 Nov 2012 06:32:07 +0000 (17:32 +1100)
drivers/of/fdt.c: In function 'of_scan_flat_dt':
drivers/of/fdt.c:490:10: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]

Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Rob Herring <rob.herring@calxeda.com>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/of/fdt.c

index 793b823842d999fa4f4fc8a75c5414dd40b9c199..73fb8c078a28c57b4f3e5dc702088df38b95d042 100644 (file)
@@ -460,7 +460,7 @@ int __init of_scan_flat_dt(int (*it)(unsigned long node,
 
        do {
                u32 tag = be32_to_cpup((__be32 *)p);
-               char *pathp;
+               const char *pathp;
 
                p += 4;
                if (tag == OF_DT_END_NODE) {