summaryrefslogtreecommitdiff
path: root/arch/powerpc
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2011-11-15 08:03:27 +0000
committerWolfgang Denk <wd@denx.de>2011-11-16 21:17:36 +0100
commitbddf144cb638ee091556dcb4a87404b366081dba (patch)
tree7393e9af0ced8edc079c04c498d10a21b5fa8963 /arch/powerpc
parentb2776d3ff54bb769d7f44e925f73c9984b10ef80 (diff)
downloadu-boot-imx-bddf144cb638ee091556dcb4a87404b366081dba.zip
u-boot-imx-bddf144cb638ee091556dcb4a87404b366081dba.tar.gz
u-boot-imx-bddf144cb638ee091556dcb4a87404b366081dba.tar.bz2
iop480_uart.c: Fix GCC 4.6 build warnings
Fix: iop480_uart.c: In function 'serial_init': iop480_uart.c:137:16: warning: variable 'val' set but not used [-Wunused-but-set-variable] Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/cpu/ppc4xx/iop480_uart.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/cpu/ppc4xx/iop480_uart.c b/arch/powerpc/cpu/ppc4xx/iop480_uart.c
index 0e3423f..027ca30 100644
--- a/arch/powerpc/cpu/ppc4xx/iop480_uart.c
+++ b/arch/powerpc/cpu/ppc4xx/iop480_uart.c
@@ -134,7 +134,6 @@ DECLARE_GLOBAL_DATA_PTR;
int serial_init (void)
{
- volatile char val;
unsigned short br_reg;
br_reg = ((((CONFIG_CPUCLOCK * 1000000) / 16) / gd->baudrate) - 1);
@@ -149,7 +148,7 @@ int serial_init (void)
out_8((u8 *)SPU_BASE + spu_RxCmd, 0xb0); /* Enable Rx */
out_8((u8 *)SPU_BASE + spu_TxCmd, 0x9c); /* Enable Tx */
out_8((u8 *)SPU_BASE + spu_Handshk_rc, 0xff); /* Clear Handshake */
- val = in_8((u8 *)SPU_BASE + spu_RxBuff); /* Dummy read, to clear receiver */
+ in_8((u8 *)SPU_BASE + spu_RxBuff); /* Dummy read, to clear receiver */
return (0);
}