summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2007-11-28 09:01:19 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2007-11-28 09:01:19 +0100
commit4ee1303b438b1ada73310aedcd09a17e06a8877d (patch)
tree7df76fded7e0a1958d500d217fd7aa2c8ae21f8d
parent9ad74946ce9732f06f4ed0c1368e1b03a11d8945 (diff)
downloadbarebox-4ee1303b438b1ada73310aedcd09a17e06a8877d.tar.gz
barebox-4ee1303b438b1ada73310aedcd09a17e06a8877d.tar.xz
pcm038: coding style fixes
Some coding style fixes for pcm038. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
-rw-r--r--board/pcm038/pcm038.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/board/pcm038/pcm038.c b/board/pcm038/pcm038.c
index db96199ff8..6befc08cd6 100644
--- a/board/pcm038/pcm038.c
+++ b/board/pcm038/pcm038.c
@@ -85,9 +85,11 @@ static int pcm038_devices_init(void)
PE12_PF_UART1_TXD,
PE13_PF_UART1_RXD,
PE14_PF_UART1_CTS,
- PE15_PF_UART1_RTS };
+ PE15_PF_UART1_RTS,
+ };
- for (i = 0; i < sizeof(mode) / sizeof(int); i++)
+ /* initizalize gpios */
+ for (i = 0; i < ARRAY_SIZE(mode); i++)
imx_gpio_mode(mode[i]);
register_device(&cfi_dev);