mirror of
https://xff.cz/git/u-boot/
synced 2025-09-04 10:12:14 +02:00
board/c2mon/pcmcia.c: Fix GCC 4.6 build warning
Fix: pcmcia.c: In function 'pcmcia_voltage_set': pcmcia.c:202:21: warning: variable 'cp' set but not used [-Wunused-but-set-variable] Signed-off-by: Wolfgang Denk <wd@denx.de>
This commit is contained in:
@@ -199,7 +199,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 immap_t *immap;
|
||||||
volatile cpm8xx_t *cp;
|
|
||||||
volatile pcmconf8xx_t *pcmp;
|
volatile pcmconf8xx_t *pcmp;
|
||||||
u_long reg;
|
u_long reg;
|
||||||
ushort sreg;
|
ushort sreg;
|
||||||
@@ -210,12 +209,11 @@ int pcmcia_voltage_set(int slot, int vcc, int vpp)
|
|||||||
'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;
|
immap = (immap_t *)CONFIG_SYS_IMMR;
|
||||||
cp = (cpm8xx_t *)(&(((immap_t *)CONFIG_SYS_IMMR)->im_cpm));
|
|
||||||
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)
|
||||||
* and assert RESET signal
|
* and assert RESET signal
|
||||||
*/
|
*/
|
||||||
debug ("Disable PCMCIA buffers and assert RESET\n");
|
debug ("Disable PCMCIA buffers and assert RESET\n");
|
||||||
reg = PCMCIA_PGCRX(_slot_);
|
reg = PCMCIA_PGCRX(_slot_);
|
||||||
reg |= __MY_PCMCIA_GCRX_CXRESET; /* active high */
|
reg |= __MY_PCMCIA_GCRX_CXRESET; /* active high */
|
||||||
|
Reference in New Issue
Block a user