mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-22 23:21:31 +00:00
board/kup/common/pcmcia.c: Fix GCC 4.6 compiler warnings
Fix: ../common/pcmcia.c: In function 'pcmcia_hardware_enable': ../common/pcmcia.c:23:20: warning: variable 'immap' set but not used [-Wunused-but-set-variable] ../common/pcmcia.c: In function 'pcmcia_voltage_set': ../common/pcmcia.c:152:20: warning: variable 'immap' set but not used [-Wunused-but-set-variable] Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: Klaus Heydeck <heydeck@kieback-peter.de>
This commit is contained in:
parent
15979b1483
commit
ef744ac92e
1 changed files with 19 additions and 23 deletions
|
@ -20,7 +20,6 @@
|
||||||
|
|
||||||
int pcmcia_hardware_enable(int slot)
|
int pcmcia_hardware_enable(int slot)
|
||||||
{
|
{
|
||||||
volatile immap_t *immap;
|
|
||||||
volatile cpm8xx_t *cp;
|
volatile cpm8xx_t *cp;
|
||||||
volatile pcmconf8xx_t *pcmp;
|
volatile pcmconf8xx_t *pcmp;
|
||||||
volatile sysconf8xx_t *sysp;
|
volatile sysconf8xx_t *sysp;
|
||||||
|
@ -30,7 +29,6 @@ int pcmcia_hardware_enable(int slot)
|
||||||
|
|
||||||
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));
|
cp = (cpm8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_cpm));
|
||||||
|
@ -149,7 +147,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 cpm8xx_t *cp;
|
volatile cpm8xx_t *cp;
|
||||||
volatile pcmconf8xx_t *pcmp;
|
volatile pcmconf8xx_t *pcmp;
|
||||||
u_long reg;
|
u_long reg;
|
||||||
|
@ -162,7 +159,6 @@ int pcmcia_voltage_set(int slot, int vcc, int vpp)
|
||||||
if (!slot) /* Slot A is not configurable */
|
if (!slot) /* Slot A is not configurable */
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
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));
|
||||||
cp = (cpm8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_cpm));
|
cp = (cpm8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_cpm));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue