summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2011-10-13 05:34:59 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-10-27 21:56:32 +0200
commit77f11a99e14ce10ebc3b26a39a976a0827b88f86 (patch)
treed1c7eefc9478cbede388e65978521e877a614b58 /board
parentf8f96129bf4044fe980d6096d45e69b953d87041 (diff)
imx: fix coding style
Fix checkpatch warning and errors in several i.MX related files. While at it also address a checkpatch warning at arch/arm/cpu/armv7/mx5/soc.c regarding the usage of extern in a C file. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Diffstat (limited to 'board')
-rw-r--r--board/davedenx/qong/qong.c10
-rw-r--r--board/freescale/mx31ads/mx31ads.c2
-rw-r--r--board/karo/tx25/tx25.c2
-rw-r--r--board/logicpd/imx27lite/imx27lite.c6
-rw-r--r--board/logicpd/imx31_litekit/imx31_litekit.c2
5 files changed, 11 insertions, 11 deletions
diff --git a/board/davedenx/qong/qong.c b/board/davedenx/qong/qong.c
index a9f2ef0d9d..5b2830ce49 100644
--- a/board/davedenx/qong/qong.c
+++ b/board/davedenx/qong/qong.c
@@ -43,7 +43,7 @@ void hw_watchdog_reset(void)
}
#endif
-int dram_init (void)
+int dram_init(void)
{
/* dram_init must store complete ramsize in gd->ram_size */
gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
@@ -60,7 +60,7 @@ static void qong_fpga_reset(void)
udelay(300);
}
-int board_early_init_f (void)
+int board_early_init_f(void)
{
#ifdef CONFIG_QONG_FPGA
/* CS1: FPGA/Network Controller/GPIO, 16-bit, no DTACK */
@@ -149,7 +149,7 @@ int board_early_init_f (void)
}
-int board_init (void)
+int board_init(void)
{
/* Chip selects */
/* CS0: Nor Flash #0 - it must be init'ed when executing from DDR */
@@ -194,13 +194,13 @@ int board_late_init(void)
return 0;
}
-int checkboard (void)
+int checkboard(void)
{
printf("Board: DAVE/DENX Qong\n");
return 0;
}
-int misc_init_r (void)
+int misc_init_r(void)
{
#ifdef CONFIG_QONG_FPGA
u32 tmp;
diff --git a/board/freescale/mx31ads/mx31ads.c b/board/freescale/mx31ads/mx31ads.c
index c66883793c..1def0d9284 100644
--- a/board/freescale/mx31ads/mx31ads.c
+++ b/board/freescale/mx31ads/mx31ads.c
@@ -112,7 +112,7 @@ int board_init(void)
return 0;
}
-int checkboard (void)
+int checkboard(void)
{
printf("Board: MX31ADS\n");
return 0;
diff --git a/board/karo/tx25/tx25.c b/board/karo/tx25/tx25.c
index ec83f997cc..d3d8ea51fd 100644
--- a/board/karo/tx25/tx25.c
+++ b/board/karo/tx25/tx25.c
@@ -151,7 +151,7 @@ int board_late_init(void)
return 0;
}
-int dram_init (void)
+int dram_init(void)
{
/* dram_init must store complete ramsize in gd->ram_size */
gd->ram_size = get_ram_size((void *)PHYS_SDRAM_1,
diff --git a/board/logicpd/imx27lite/imx27lite.c b/board/logicpd/imx27lite/imx27lite.c
index 2b273acea5..8a5015c51c 100644
--- a/board/logicpd/imx27lite/imx27lite.c
+++ b/board/logicpd/imx27lite/imx27lite.c
@@ -26,7 +26,7 @@
DECLARE_GLOBAL_DATA_PTR;
-int board_init (void)
+int board_init(void)
{
struct gpio_regs *regs = (struct gpio_regs *)IMX_GPIO_BASE;
#if defined(CONFIG_SYS_NAND_LARGEPAGE)
@@ -64,7 +64,7 @@ int board_init (void)
return 0;
}
-int dram_init (void)
+int dram_init(void)
{
/* dram_init must store complete ramsize in gd->ram_size */
gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
@@ -86,7 +86,7 @@ void dram_init_banksize(void)
int checkboard(void)
{
- puts ("Board: ");
+ puts("Board: ");
puts(CONFIG_BOARDNAME);
return 0;
}
diff --git a/board/logicpd/imx31_litekit/imx31_litekit.c b/board/logicpd/imx31_litekit/imx31_litekit.c
index c04b3510a5..b038e0d887 100644
--- a/board/logicpd/imx31_litekit/imx31_litekit.c
+++ b/board/logicpd/imx31_litekit/imx31_litekit.c
@@ -91,7 +91,7 @@ int board_init(void)
return 0;
}
-int checkboard (void)
+int checkboard(void)
{
printf("Board: i.MX31 Litekit\n");
return 0;