ARM: EXYNOS: Fix compilation warning
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 5 May 2014 09:26:48 +0000 (14:56 +0530)
committerArnd Bergmann <arnd@arndb.de>
Tue, 17 Jun 2014 15:09:46 +0000 (17:09 +0200)
of_get_flat_dt_prop return type is now const.
Fixes the following compilation warning introduced by commit 9d0c4dfedd96
("of/fdt: update of_get_flat_dt_prop in prep for libfdt")

arch/arm/mach-exynos/exynos.c:259:6: warning:
assignment discards â€˜const’ qualifier from pointer target type [enabled by default]

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Reviewed-by: Tushar Behera <tushar.behera@linaro.org>
Cc: Rob Herring <robh@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-exynos/exynos.c

index fb1eadd9e30ccc805d7e2c0c9732d98584551302..f38cf7c110ccb5b1508117aab9a9d2bf69b67448 100644 (file)
@@ -220,7 +220,7 @@ static int __init exynos_fdt_map_chipid(unsigned long node, const char *uname,
                                        int depth, void *data)
 {
        struct map_desc iodesc;
-       __be32 *reg;
+       const __be32 *reg;
        int len;
 
        if (!of_flat_dt_is_compatible(node, "samsung,exynos4210-chipid") &&
This page took 0.026888 seconds and 5 git commands to generate.