summaryrefslogtreecommitdiff
path: root/arch/powerpc/cpu
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2011-11-04 15:55:43 +0000
committerWolfgang Denk <wd@denx.de>2011-11-07 22:14:32 +0100
commit4d4aebaa018aab3a1425c8d2f4d06a430318ea62 (patch)
tree974ffa4c76a065f4a383f4da621407070f605854 /arch/powerpc/cpu
parent5c10419cead8f900e106046f6574cfeab7887e44 (diff)
downloadu-boot-imx-4d4aebaa018aab3a1425c8d2f4d06a430318ea62.zip
u-boot-imx-4d4aebaa018aab3a1425c8d2f4d06a430318ea62.tar.gz
u-boot-imx-4d4aebaa018aab3a1425c8d2f4d06a430318ea62.tar.bz2
mpc8xx/spi.c: Fix GCC 4.6 build warnings
Fix: spi.c: In function 'spi_init_f': spi.c:144:21: warning: variable 'iop' set but not used [-Wunused-but-set-variable] spi.c:142:22: warning: variable 'cpi' set but not used [-Wunused-but-set-variable] Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'arch/powerpc/cpu')
-rw-r--r--arch/powerpc/cpu/mpc8xx/spi.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/powerpc/cpu/mpc8xx/spi.c b/arch/powerpc/cpu/mpc8xx/spi.c
index b2ac23e..db34852 100644
--- a/arch/powerpc/cpu/mpc8xx/spi.c
+++ b/arch/powerpc/cpu/mpc8xx/spi.c
@@ -139,14 +139,10 @@ void spi_init_f (void)
volatile spi_t *spi;
volatile immap_t *immr;
- volatile cpic8xx_t *cpi;
volatile cpm8xx_t *cp;
- volatile iop8xx_t *iop;
volatile cbd_t *tbdf, *rbdf;
immr = (immap_t *) CONFIG_SYS_IMMR;
- cpi = (cpic8xx_t *)&immr->im_cpic;
- iop = (iop8xx_t *) &immr->im_ioport;
cp = (cpm8xx_t *) &immr->im_cpm;
#ifdef CONFIG_SYS_SPI_UCODE_PATCH