summaryrefslogtreecommitdiff
path: root/board/mbx8xx/pcmcia.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2011-11-04 15:55:28 +0000
committerWolfgang Denk <wd@denx.de>2011-11-07 22:12:45 +0100
commit01d267efc11c996a2040c3fdb6d700a2c74fbe11 (patch)
tree92349bc18c92af09b17b7fbf0517bd264ab8195b /board/mbx8xx/pcmcia.c
parent561d01a5ee5d148de87fe3c7adbb28b4cc522db2 (diff)
downloadu-boot-imx-01d267efc11c996a2040c3fdb6d700a2c74fbe11.zip
u-boot-imx-01d267efc11c996a2040c3fdb6d700a2c74fbe11.tar.gz
u-boot-imx-01d267efc11c996a2040c3fdb6d700a2c74fbe11.tar.bz2
board/mbx8xx/pcmcia.c: Fix GCC 4.6 build warnings
Fix: pcmcia.c: In function 'pcmcia_hardware_enable': pcmcia.c:83:25: warning: variable 'sysp' set but not used [-Wunused-but-set-variable] pcmcia.c:81:21: warning: variable 'cp' set but not used [-Wunused-but-set-variable] pcmcia.c:80:20: warning: variable 'immap' set but not used [-Wunused-but-set-variable] Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'board/mbx8xx/pcmcia.c')
-rw-r--r--board/mbx8xx/pcmcia.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/board/mbx8xx/pcmcia.c b/board/mbx8xx/pcmcia.c
index e672d8c..497e260 100644
--- a/board/mbx8xx/pcmcia.c
+++ b/board/mbx8xx/pcmcia.c
@@ -77,10 +77,7 @@ int pcmcia_voltage_set (int slot, int vcc, int vpp)
int pcmcia_hardware_enable (int slot)
{
- volatile immap_t *immap;
- volatile cpm8xx_t *cp;
volatile pcmconf8xx_t *pcmp;
- volatile sysconf8xx_t *sysp;
uint reg, mask;
debug ("hardware_enable: " PCMCIA_BOARD_MSG " Slot %c\n",
@@ -88,10 +85,7 @@ int pcmcia_hardware_enable (int slot)
udelay (10000);
- immap = (immap_t *) CONFIG_SYS_IMMR;
- sysp = (sysconf8xx_t *) (&(((immap_t *) CONFIG_SYS_IMMR)->im_siu_conf));
pcmp = (pcmconf8xx_t *) (&(((immap_t *) CONFIG_SYS_IMMR)->im_pcmcia));
- cp = (cpm8xx_t *) (&(((immap_t *) CONFIG_SYS_IMMR)->im_cpm));
/* clear interrupt state, and disable interrupts */
pcmp->pcmc_pscr = PCMCIA_MASK (_slot_);