mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-10 12:39:22 -04:00
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>
This commit is contained in:
parent
5c10419cea
commit
4d4aebaa01
@ -139,14 +139,10 @@ void spi_init_f (void)
|
|||||||
|
|
||||||
volatile spi_t *spi;
|
volatile spi_t *spi;
|
||||||
volatile immap_t *immr;
|
volatile immap_t *immr;
|
||||||
volatile cpic8xx_t *cpi;
|
|
||||||
volatile cpm8xx_t *cp;
|
volatile cpm8xx_t *cp;
|
||||||
volatile iop8xx_t *iop;
|
|
||||||
volatile cbd_t *tbdf, *rbdf;
|
volatile cbd_t *tbdf, *rbdf;
|
||||||
|
|
||||||
immr = (immap_t *) CONFIG_SYS_IMMR;
|
immr = (immap_t *) CONFIG_SYS_IMMR;
|
||||||
cpi = (cpic8xx_t *)&immr->im_cpic;
|
|
||||||
iop = (iop8xx_t *) &immr->im_ioport;
|
|
||||||
cp = (cpm8xx_t *) &immr->im_cpm;
|
cp = (cpm8xx_t *) &immr->im_cpm;
|
||||||
|
|
||||||
#ifdef CONFIG_SYS_SPI_UCODE_PATCH
|
#ifdef CONFIG_SYS_SPI_UCODE_PATCH
|
||||||
|
Loading…
x
Reference in New Issue
Block a user