]> git.sur5r.net Git - u-boot/commitdiff
arm: omap2: Fix compiler warning
authorBin Meng <bmeng.cn@gmail.com>
Mon, 12 Feb 2018 09:54:36 +0000 (17:54 +0800)
committerTom Rini <trini@konsulko.com>
Wed, 14 Feb 2018 01:34:07 +0000 (20:34 -0500)
Fix build warning in arch/arm/mach-omap2/emif-common.c and
arch/arm/mach-omap2/omap4/emif.c with gcc 7.3.0:

  warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
arch/arm/mach-omap2/emif-common.c
arch/arm/mach-omap2/omap4/emif.c

index e3ef37b077762400d8ed8c9cb3011a83f56786d7..d6c56b0ae847874d2483cc376eb0300c0c2a31b3 100644 (file)
@@ -599,7 +599,7 @@ s8 addressing_table_index(u8 type, u8 density, u8 width)
  * tables of the device using DDR clock frequency
  */
 static const struct lpddr2_ac_timings *get_timings_table(const struct
-                       lpddr2_ac_timings const *const *device_timings,
+                       lpddr2_ac_timings *const *device_timings,
                        u32 freq)
 {
        u32 i, temp, freq_nearest;
index 403c3c6146e46fbfb01da9a7da495bbb985cafdb..8f20b1c184b34be72dfbf558a51fa7c911b75ea4 100644 (file)
@@ -90,8 +90,7 @@ static const struct lpddr2_min_tck min_tck_jedec = {
        .tFAW = 8
 };
 
-static const struct lpddr2_ac_timings const*
-                       jedec_ac_timings[MAX_NUM_SPEEDBINS] = {
+static const struct lpddr2_ac_timings *jedec_ac_timings[MAX_NUM_SPEEDBINS] = {
        &timings_jedec_200_mhz,
        &timings_jedec_400_mhz
 };