summaryrefslogtreecommitdiff
path: root/drivers/pcmcia/mpc8xx_pcmcia.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2011-11-04 15:55:22 +0000
committerWolfgang Denk <wd@denx.de>2011-11-07 22:11:46 +0100
commit045a96727bd1eac988b979304ba95e4f78d09487 (patch)
tree93284217acac229dea12c98ef20410552872e948 /drivers/pcmcia/mpc8xx_pcmcia.c
parent90357f14938806010841cad6c7782bf3b91b0c46 (diff)
downloadu-boot-imx-045a96727bd1eac988b979304ba95e4f78d09487.zip
u-boot-imx-045a96727bd1eac988b979304ba95e4f78d09487.tar.gz
u-boot-imx-045a96727bd1eac988b979304ba95e4f78d09487.tar.bz2
drivers/pcmcia/mpc8xx_pcmcia.c: Fix GCC 4.6 build warning
Fix: mpc8xx_pcmcia.c: In function 'pcmcia_on': mpc8xx_pcmcia.c:76:8: warning: variable 'slotbit' set but not used [-Wunused-but-set-variable] Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'drivers/pcmcia/mpc8xx_pcmcia.c')
-rw-r--r--drivers/pcmcia/mpc8xx_pcmcia.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pcmcia/mpc8xx_pcmcia.c b/drivers/pcmcia/mpc8xx_pcmcia.c
index 74a50f1..3732583 100644
--- a/drivers/pcmcia/mpc8xx_pcmcia.c
+++ b/drivers/pcmcia/mpc8xx_pcmcia.c
@@ -1,6 +1,7 @@
#include <common.h>
#include <mpc8xx.h>
#include <pcmcia.h>
+#include <linux/compiler.h>
#undef CONFIG_PCMCIA
@@ -73,8 +74,8 @@ int pcmcia_on (void)
{
u_long reg, base;
pcmcia_win_t *win;
- u_int slotbit;
u_int rc, slot;
+ __maybe_unused u_int slotbit;
int i;
debug ("Enable PCMCIA " PCMCIA_SLOT_MSG "\n");