diff options
author | Wolfgang Denk <wd@denx.de> | 2008-06-28 23:34:37 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-06-28 23:34:37 +0200 |
commit | e093a247628228100f405b6d7f6b1bfc16141938 (patch) | |
tree | 5996ff53cdbbb65df98f94abd24b2904cfc8e884 /board/mvblm7 | |
parent | 01db232dd7a0ceb81208a9f2545720c80e5bfd83 (diff) | |
download | talos-obmc-uboot-e093a247628228100f405b6d7f6b1bfc16141938.tar.gz talos-obmc-uboot-e093a247628228100f405b6d7f6b1bfc16141938.zip |
Coding Style Cleanup
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'board/mvblm7')
-rw-r--r-- | board/mvblm7/mvblm7.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/board/mvblm7/mvblm7.c b/board/mvblm7/mvblm7.c index 41cb39dc9c..69fd7850e3 100644 --- a/board/mvblm7/mvblm7.c +++ b/board/mvblm7/mvblm7.c @@ -45,8 +45,8 @@ int fixed_sdram(void) msize = CFG_DDR_SIZE; for (ddr_size = msize << 20, ddr_size_log2 = 0; - (ddr_size > 1); - ddr_size = ddr_size >> 1, ddr_size_log2++) { + (ddr_size > 1); + ddr_size = ddr_size >> 1, ddr_size_log2++) { if (ddr_size & 1) return -1; } @@ -127,21 +127,21 @@ u8 *dhcp_vendorex_proc(u8 *popt) #ifdef CONFIG_HARD_SPI int spi_cs_is_valid(unsigned int bus, unsigned int cs) { - return bus == 0 && cs == 0; + return bus == 0 && cs == 0; } void spi_cs_activate(struct spi_slave *slave) { - volatile gpio83xx_t *iopd = &((immap_t *)CFG_IMMR)->gpio[0]; + volatile gpio83xx_t *iopd = &((immap_t *)CFG_IMMR)->gpio[0]; - iopd->dat &= ~MVBLM7_MMC_CS; + iopd->dat &= ~MVBLM7_MMC_CS; } void spi_cs_deactivate(struct spi_slave *slave) { - volatile gpio83xx_t *iopd = &((immap_t *)CFG_IMMR)->gpio[0]; + volatile gpio83xx_t *iopd = &((immap_t *)CFG_IMMR)->gpio[0]; - iopd->dat |= ~MVBLM7_MMC_CS; + iopd->dat |= ~MVBLM7_MMC_CS; } #endif |