of: Fix build warnings
authorJohn Stultz <john.stultz@linaro.org>
Thu, 19 Nov 2015 21:45:41 +0000 (13:45 -0800)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:54:09 +0000 (13:54 -0800)
In commit d6cb004d80 (of: fix CONFIG_CMDLINE_EXTEND),
the types of some variables in early_init_dt_scan_chosen()
were modified, which results in build warnings.

This patch resets the unsigned long to an int, and re-adds
the const to the char*.

Change-Id: Ie60ae92b4552e453cf477dd83f42838b3f95975e
Signed-off-by: John Stultz <john.stultz@linaro.org>
drivers/of/fdt.c

index b1011218e4f40487f688f5765f5974a1bf1b3461..86fff625f6d5770ec493a301a30be8d3bfa11831 100644 (file)
@@ -964,8 +964,8 @@ static const char *config_cmdline = "";
 int __init early_init_dt_scan_chosen(unsigned long node, const char *uname,
                                     int depth, void *data)
 {
-       unsigned long l = 0;
-       char *p = NULL;
+       int l = 0;
+       const char *p = NULL;
        char *cmdline = data;
 
        pr_debug("search \"chosen\", depth: %d, uname: %s\n", depth, uname);