mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-06 06:41:40 +00:00
board/lwmon/pcmcia.c: Fix GCC 4.6 build warnings
Fix: pcmcia.c: In function 'pcmcia_hardware_enable': pcmcia.c:33:21: warning: variable 'cp' set but not used [-Wunused-but-set-variable] pcmcia.c:32:20: warning: variable 'immap' set but not used [-Wunused-but-set-variable] pcmcia.c: In function 'pcmcia_voltage_set': pcmcia.c:174:20: warning: variable 'immap' set but not used [-Wunused-but-set-variable] Signed-off-by: Wolfgang Denk <wd@denx.de>
This commit is contained in:
parent
ef744ac92e
commit
700a3748a6
1 changed files with 0 additions and 6 deletions
|
@ -29,8 +29,6 @@
|
||||||
|
|
||||||
int pcmcia_hardware_enable(int slot)
|
int pcmcia_hardware_enable(int slot)
|
||||||
{
|
{
|
||||||
volatile immap_t *immap;
|
|
||||||
volatile cpm8xx_t *cp;
|
|
||||||
volatile pcmconf8xx_t *pcmp;
|
volatile pcmconf8xx_t *pcmp;
|
||||||
volatile sysconf8xx_t *sysp;
|
volatile sysconf8xx_t *sysp;
|
||||||
uint reg, mask;
|
uint reg, mask;
|
||||||
|
@ -51,10 +49,8 @@ int pcmcia_hardware_enable(int slot)
|
||||||
#endif
|
#endif
|
||||||
udelay(10000);
|
udelay(10000);
|
||||||
|
|
||||||
immap = (immap_t *)CONFIG_SYS_IMMR;
|
|
||||||
sysp = (sysconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_siu_conf));
|
sysp = (sysconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_siu_conf));
|
||||||
pcmp = (pcmconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia));
|
pcmp = (pcmconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia));
|
||||||
cp = (cpm8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_cpm));
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Configure SIUMCR to enable PCMCIA port B
|
* Configure SIUMCR to enable PCMCIA port B
|
||||||
|
@ -171,7 +167,6 @@ int pcmcia_hardware_disable(int slot)
|
||||||
|
|
||||||
int pcmcia_voltage_set(int slot, int vcc, int vpp)
|
int pcmcia_voltage_set(int slot, int vcc, int vpp)
|
||||||
{
|
{
|
||||||
volatile immap_t *immap;
|
|
||||||
volatile pcmconf8xx_t *pcmp;
|
volatile pcmconf8xx_t *pcmp;
|
||||||
u_long reg;
|
u_long reg;
|
||||||
uchar val;
|
uchar val;
|
||||||
|
@ -181,7 +176,6 @@ int pcmcia_voltage_set(int slot, int vcc, int vpp)
|
||||||
" Slot %c, Vcc=%d.%d, Vpp=%d.%d\n",
|
" Slot %c, Vcc=%d.%d, Vpp=%d.%d\n",
|
||||||
'A'+slot, vcc/10, vcc%10, vpp/10, vcc%10);
|
'A'+slot, vcc/10, vcc%10, vpp/10, vcc%10);
|
||||||
|
|
||||||
immap = (immap_t *)CONFIG_SYS_IMMR;
|
|
||||||
pcmp = (pcmconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia));
|
pcmp = (pcmconf8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_pcmcia));
|
||||||
/*
|
/*
|
||||||
* Disable PCMCIA buffers (isolate the interface)
|
* Disable PCMCIA buffers (isolate the interface)
|
||||||
|
|
Loading…
Add table
Reference in a new issue