]> git.sur5r.net Git - u-boot/commitdiff
Remove volatile qualifier in get_ram_size() calls
authorAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sun, 3 Jul 2011 05:55:33 +0000 (05:55 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sun, 17 Jul 2011 15:11:53 +0000 (17:11 +0200)
Checkpatch.pl complains about the volatile qualifier in calls to
get_ram_size(). Remove this qualifier in the prototype and in the
calls where it is useless, and leave it only in the function body
where it is needed.

Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
27 files changed:
arch/arm/cpu/arm926ejs/orion5x/dram.c
board/BuS/eb_cpux9k2/cpux9k2.c
board/atmel/at91rm9200ek/at91rm9200ek.c
board/davedenx/qong/qong.c
board/davinci/common/misc.c
board/efikamx/efikamx.c
board/eukrea/cpu9260/cpu9260.c
board/eukrea/cpuat91/cpuat91.c
board/freescale/mx31ads/mx31ads.c
board/freescale/mx31pdk/mx31pdk.c
board/freescale/mx51evk/mx51evk.c
board/freescale/mx53ard/mx53ard.c
board/freescale/mx53evk/mx53evk.c
board/freescale/mx53loco/mx53loco.c
board/freescale/mx53smd/mx53smd.c
board/imx31_phycore/imx31_phycore.c
board/karo/tx25/tx25.c
board/keymile/km_arm/km_arm.c
board/logicpd/imx27lite/imx27lite.c
board/logicpd/imx31_litekit/imx31_litekit.c
board/mx1ads/mx1ads.c
board/ronetix/pm9261/pm9261.c
board/ronetix/pm9263/pm9263.c
board/ronetix/pm9g45/pm9g45.c
board/syteco/jadecpu/jadecpu.c
common/memsize.c
include/common.h

index 3e1ff7d8ea66bed3bd02946a684ba4ffee84bb2d..5cc31a99f1482d7b2cb55a72b8cf8245e38005c2 100644 (file)
@@ -53,7 +53,7 @@ int dram_init (void)
 {
        /* dram_init must store complete ramsize in gd->ram_size */
        gd->ram_size = get_ram_size(
-                       (volatile long *) orion5x_sdram_bar(0),
+                       (long *) orion5x_sdram_bar(0),
                        CONFIG_MAX_RAM_BANK_SIZE);
        return 0;
 }
@@ -65,7 +65,7 @@ void dram_init_banksize (void)
        for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++) {
                gd->bd->bi_dram[i].start = orion5x_sdram_bar(i);
                gd->bd->bi_dram[i].size = get_ram_size(
-                       (volatile long *) (gd->bd->bi_dram[i].start),
+                       (long *) (gd->bd->bi_dram[i].start),
                        CONFIG_MAX_RAM_BANK_SIZE);
        }
 }
index a918b04dddcbd0d0b14a9e8b8c166488e476707f..856d798a31e947edbe33eef52c41b348d9536dfc 100644 (file)
@@ -141,7 +141,7 @@ void reset_phy(void)
 
 int dram_init(void)
 {
-       gd->ram_size = get_ram_size((volatile long *)CONFIG_SYS_SDRAM_BASE,
+       gd->ram_size = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE,
                        CONFIG_SYS_SDRAM_SIZE);
        return 0;
 }
index ec0dabaaaa318432bb05375e37f288a0d83a13eb..2b4d845629b192dccf9c94d66fdc2217183770a0 100644 (file)
@@ -64,7 +64,7 @@ int board_early_init_f(void)
 int dram_init (void)
 {
        /* dram_init must store complete ramsize in gd->ram_size */
-       gd->ram_size = get_ram_size((volatile long *)CONFIG_SYS_SDRAM_BASE,
+       gd->ram_size = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE,
                        CONFIG_SYS_SDRAM_SIZE);
        return 0;
 }
index b1238d505ab844e691229e886e64bfb1e5702cd7..ec226276803fc234dd3f73eea123a65ec6184af2 100644 (file)
@@ -44,7 +44,7 @@ void hw_watchdog_reset(void)
 int dram_init (void)
 {
        /* dram_init must store complete ramsize in gd->ram_size */
-       gd->ram_size = get_ram_size((volatile void *)CONFIG_SYS_SDRAM_BASE,
+       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
                                PHYS_SDRAM_1_SIZE);
        return 0;
 }
index 2bfdf23bed1276d99280de73c926c7778c1cea03..6103339216dd3ef893967220a0df40764254ea29 100644 (file)
@@ -38,7 +38,7 @@ int dram_init(void)
 {
        /* dram_init must store complete ramsize in gd->ram_size */
        gd->ram_size = get_ram_size(
-                       (volatile void *)CONFIG_SYS_SDRAM_BASE,
+                       (void *)CONFIG_SYS_SDRAM_BASE,
                        CONFIG_MAX_RAM_BANK_SIZE);
        return 0;
 }
index 16be532f14abef81da083d75df08d60891a4703d..4b3691808ee7a328e61d429b59e8b8442ca2f7ff 100644 (file)
@@ -113,7 +113,7 @@ u32 get_board_rev(void)
 int dram_init(void)
 {
        /* dram_init must store complete ramsize in gd->ram_size */
-       gd->ram_size = get_ram_size((volatile void *)CONFIG_SYS_SDRAM_BASE,
+       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
                                PHYS_SDRAM_1_SIZE);
        return 0;
 }
index 0959c5cdb93dc8dc3f73ca9522fbef3d94ee1cbe..402f19ff8b2d21886a751e98c2a28ed0928c98f7 100644 (file)
@@ -174,7 +174,7 @@ int board_init(void)
 
 int dram_init(void)
 {
-       gd->ram_size = get_ram_size((volatile long *)CONFIG_SYS_SDRAM_BASE,
+       gd->ram_size = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE,
                        CONFIG_SYS_SDRAM_SIZE);
        return 0;
 }
index 5d0541484136bee3578e0b87e0c9e8811db6349c..f654f87b725f12d93e6a60cbadcd286a7abf658a 100644 (file)
@@ -63,7 +63,7 @@ int board_early_init_f(void)
 int dram_init(void)
 {
        /* dram_init must store complete ramsize in gd->ram_size */
-       gd->ram_size = get_ram_size((volatile long *)CONFIG_SYS_SDRAM_BASE,
+       gd->ram_size = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE,
                        CONFIG_SYS_SDRAM_SIZE);
        return 0;
 }
index 9bf9c18fd8f0c0451885886d0052a98f8c250d29..7637c9281c7973a2dd8aea0077d645518e31749c 100644 (file)
@@ -31,7 +31,7 @@ DECLARE_GLOBAL_DATA_PTR;
 int dram_init(void)
 {
        /* dram_init must store complete ramsize in gd->ram_size */
-       gd->ram_size = get_ram_size((volatile void *)PHYS_SDRAM_1,
+       gd->ram_size = get_ram_size((void *)PHYS_SDRAM_1,
                                PHYS_SDRAM_1_SIZE);
        return 0;
 }
index 08addd29e1fb3caa41c6fcbc51061cf00673f64b..f6e190ac6b61b535105f6c4e53fc2a9a3badfc40 100644 (file)
@@ -42,7 +42,7 @@ void hw_watchdog_reset(void)
 int dram_init(void)
 {
        /* dram_init must store complete ramsize in gd->ram_size */
-       gd->ram_size = get_ram_size((volatile void *)CONFIG_SYS_SDRAM_BASE,
+       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
                                PHYS_SDRAM_1_SIZE);
        return 0;
 }
index e2d3d74a29bd44e5f5d2770e17ec872f7a15f2fd..fd7342f11271bc3947e93b5078a726bbc00a4d8c 100644 (file)
@@ -53,7 +53,7 @@ u32 get_board_rev(void)
 int dram_init(void)
 {
        /* dram_init must store complete ramsize in gd->ram_size */
-       gd->ram_size = get_ram_size((volatile void *)CONFIG_SYS_SDRAM_BASE,
+       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
                                PHYS_SDRAM_1_SIZE);
        return 0;
 }
index b51d2097d1804e680332d6b261af2ce360d11ffd..134603a7cfd6d3349fe6407b20184ca4b559062d 100644 (file)
@@ -46,8 +46,8 @@ int dram_init(void)
 {
        u32 size1, size2;
 
-       size1 = get_ram_size((volatile void *)PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE);
-       size2 = get_ram_size((volatile void *)PHYS_SDRAM_2, PHYS_SDRAM_2_SIZE);
+       size1 = get_ram_size((void *)PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE);
+       size2 = get_ram_size((void *)PHYS_SDRAM_2, PHYS_SDRAM_2_SIZE);
 
        gd->ram_size = size1 + size2;
 
index a89aa25b06ae4ea972b613c2211bbbf0f1faa254..88095dc7aeee3c41fa897833180cc3dd0fd1214b 100644 (file)
@@ -46,7 +46,7 @@ u32 get_board_rev(void)
 int dram_init(void)
 {
        /* dram_init must store complete ramsize in gd->ram_size */
-       gd->ram_size = get_ram_size((volatile void *)CONFIG_SYS_SDRAM_BASE,
+       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
                                PHYS_SDRAM_1_SIZE);
        return 0;
 }
index d032428bc4f6a9d2e2bba85f7ce944b17c9a1ef8..18b388eeda00974462e72440206dda769e75409a 100644 (file)
@@ -47,8 +47,8 @@ int dram_init(void)
 {
        u32 size1, size2;
 
-       size1 = get_ram_size((volatile void *)PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE);
-       size2 = get_ram_size((volatile void *)PHYS_SDRAM_2, PHYS_SDRAM_2_SIZE);
+       size1 = get_ram_size((void *)PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE);
+       size2 = get_ram_size((void *)PHYS_SDRAM_2, PHYS_SDRAM_2_SIZE);
 
        gd->ram_size = size1 + size2;
 
index f3c433fa2ca93bc8f4444a302901e9d838269dfc..21b5d14c02083aaaa9e21aeaf7c9b5f767db0693 100644 (file)
@@ -44,8 +44,8 @@ int dram_init(void)
 {
        u32 size1, size2;
 
-       size1 = get_ram_size((volatile void *)PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE);
-       size2 = get_ram_size((volatile void *)PHYS_SDRAM_2, PHYS_SDRAM_2_SIZE);
+       size1 = get_ram_size((void *)PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE);
+       size2 = get_ram_size((void *)PHYS_SDRAM_2, PHYS_SDRAM_2_SIZE);
 
        gd->ram_size = size1 + size2;
 
index ca7d6e2133c0397685fb2364fd3a86da362ec0d0..773900e3c9469abbf2019e8f0fa3275f88ad29e7 100644 (file)
@@ -33,7 +33,7 @@ DECLARE_GLOBAL_DATA_PTR;
 int dram_init(void)
 {
        /* dram_init must store complete ramsize in gd->ram_size */
-       gd->ram_size = get_ram_size((volatile void *)PHYS_SDRAM_1,
+       gd->ram_size = get_ram_size((void *)PHYS_SDRAM_1,
                                PHYS_SDRAM_1_SIZE);
        return 0;
 }
index 4088374bc557956ef01857b92c03cee66e32e269..25b99e81b29f6ccef0d56e930786846218a5c83a 100644 (file)
@@ -160,7 +160,7 @@ int board_late_init(void)
 int dram_init (void)
 {
        /* dram_init must store complete ramsize in gd->ram_size */
-       gd->ram_size = get_ram_size((volatile void *)PHYS_SDRAM_1,
+       gd->ram_size = get_ram_size((void *)PHYS_SDRAM_1,
                                PHYS_SDRAM_1_SIZE);
        return 0;
 }
@@ -168,11 +168,11 @@ int dram_init (void)
 void dram_init_banksize(void)
 {
        gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
-       gd->bd->bi_dram[0].size = get_ram_size((volatile void *)PHYS_SDRAM_1,
+       gd->bd->bi_dram[0].size = get_ram_size((void *)PHYS_SDRAM_1,
                        PHYS_SDRAM_1_SIZE);
 #if CONFIG_NR_DRAM_BANKS > 1
        gd->bd->bi_dram[1].start = PHYS_SDRAM_2;
-       gd->bd->bi_dram[1].size = get_ram_size((volatile void *)PHYS_SDRAM_2,
+       gd->bd->bi_dram[1].size = get_ram_size((void *)PHYS_SDRAM_2,
                        PHYS_SDRAM_2_SIZE);
 #else
 
index 5da856fabc4fd9e32eb90abe565315c52ee69287..a8f2b2317aa45afbe83bfa6832e2fe20ec162498 100644 (file)
@@ -321,7 +321,7 @@ int dram_init(void)
 {
        /* dram_init must store complete ramsize in gd->ram_size */
        /* Fix this */
-       gd->ram_size = get_ram_size((volatile void *)kw_sdram_bar(0),
+       gd->ram_size = get_ram_size((void *)kw_sdram_bar(0),
                                kw_sdram_bs(0));
        return 0;
 }
index cc341f8f5d2e22bd1576b61b7e25872ade09ed51..2b273acea585770d68fb537c5422e415e63c1300 100644 (file)
@@ -67,7 +67,7 @@ int board_init (void)
 int dram_init (void)
 {
        /* dram_init must store complete ramsize in gd->ram_size */
-       gd->ram_size = get_ram_size((volatile void *)CONFIG_SYS_SDRAM_BASE,
+       gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
                                PHYS_SDRAM_1_SIZE);
        return 0;
 }
@@ -75,11 +75,11 @@ int dram_init (void)
 void dram_init_banksize(void)
 {
        gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
-       gd->bd->bi_dram[0].size = get_ram_size((volatile void *)CONFIG_SYS_SDRAM_BASE,
+       gd->bd->bi_dram[0].size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
                        PHYS_SDRAM_1_SIZE);
 #if CONFIG_NR_DRAM_BANKS > 1
        gd->bd->bi_dram[1].start = PHYS_SDRAM_2;
-       gd->bd->bi_dram[1].size = get_ram_size((volatile void *)PHYS_SDRAM_2,
+       gd->bd->bi_dram[1].size = get_ram_size((void *)PHYS_SDRAM_2,
                        PHYS_SDRAM_2_SIZE);
 #endif
 }
index bf635c301d7463d4a16c8799b8d1fbcb339cbd78..09cc9c5b9ce0a21bb26142b7fd247a81b5c97074 100644 (file)
@@ -32,7 +32,7 @@ DECLARE_GLOBAL_DATA_PTR;
 int dram_init(void)
 {
        /* dram_init must store complete ramsize in gd->ram_size */
-       gd->ram_size = get_ram_size((volatile void *)PHYS_SDRAM_1,
+       gd->ram_size = get_ram_size((void *)PHYS_SDRAM_1,
                                PHYS_SDRAM_1_SIZE);
        return 0;
 }
index c11c0fe2159e0284d758936354652c55516393b1..86b49fb60dffa67bbcf79ad9396b833af23ac985 100644 (file)
@@ -169,7 +169,7 @@ int board_late_init (void)
 int dram_init(void)
 {
        /* dram_init must store complete ramsize in gd->ram_size */
-       gd->ram_size = get_ram_size((volatile void *)PHYS_SDRAM_1,
+       gd->ram_size = get_ram_size((void *)PHYS_SDRAM_1,
                                PHYS_SDRAM_1_SIZE);
        return 0;
 }
index e0f44ddd1576a955b36d1b697479040a63b4c239..2c50fe8e6ec6293657904f087897453195be173c 100644 (file)
@@ -282,7 +282,7 @@ int board_eth_init(bd_t *bis)
 int dram_init(void)
 {
        /* dram_init must store complete ramsize in gd->ram_size */
-       gd->ram_size = get_ram_size((volatile void *)PHYS_SDRAM,
+       gd->ram_size = get_ram_size((void *)PHYS_SDRAM,
                                PHYS_SDRAM_SIZE);
        return 0;
 }
index ec9f865915bc003df2a559115e1cfcd7a09bbdc5..8071600081be22321678b4a3413290b2dc1535c2 100644 (file)
@@ -379,7 +379,7 @@ int board_init(void)
 int dram_init(void)
 {
        /* dram_init must store complete ramsize in gd->ram_size */
-       gd->ram_size = get_ram_size((volatile void *)PHYS_SDRAM,
+       gd->ram_size = get_ram_size((void *)PHYS_SDRAM,
                                PHYS_SDRAM_SIZE);
        return 0;
 }
index 79b7c9d2eecc8689c89faf4f7d254af2af6620f6..fa69599e909ae3e7f7090b7a6418a86a72f7cbeb 100644 (file)
@@ -160,7 +160,7 @@ int board_init(void)
 int dram_init(void)
 {
        /* dram_init must store complete ramsize in gd->ram_size */
-       gd->ram_size = get_ram_size((volatile void *)PHYS_SDRAM,
+       gd->ram_size = get_ram_size((void *)PHYS_SDRAM,
                                PHYS_SDRAM_SIZE);
        return 0;
 }
index a7b6e70f497648291c8b3c5d18e2221a9acafeff..63a0d334461877590573fee6e2de239bb35b3213 100644 (file)
@@ -152,7 +152,7 @@ int misc_init_r(void)
 int dram_init(void)
 {
        /* dram_init must store complete ramsize in gd->ram_size */
-       gd->ram_size = get_ram_size((volatile void *)PHYS_SDRAM,
+       gd->ram_size = get_ram_size((void *)PHYS_SDRAM,
                                        PHYS_SDRAM_SIZE);
 
        return 0;
index 6c275c9b25feec5189d2717f8dd35c46d6eb88da..963e4f35b18059c3d79b30c04ab595281c37273e 100644 (file)
@@ -37,7 +37,7 @@
  * the actually available RAM size between addresses `base' and
  * `base + maxsize'.
  */
-long get_ram_size(volatile long *base, long maxsize)
+long get_ram_size(long *base, long maxsize)
 {
        volatile long *addr;
        long           save[32];
index 2c8513ae18d1f29d2aff2758dc4af51007c73b1c..c5d2dcedf3607fafb15df2d035122b04f57570b1 100644 (file)
@@ -317,7 +317,7 @@ const char *symbol_lookup(unsigned long addr, unsigned long *caddr);
 void   api_init (void);
 
 /* common/memsize.c */
-long   get_ram_size  (volatile long *, long);
+long   get_ram_size  (long *, long);
 
 /* $(BOARD)/$(BOARD).c */
 void   reset_phy     (void);