Commit 3bfc2601 authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Russell King

[ARM PATCH] 1843/2: supress PCMCIA build warnings

Patch from Nicolas Pitre

This is an alternative to patch #1843/1 keeping the ugliness
(and possible future breakage) to the affected driver only.
This one should be applied after patch #1830/2.
parent 9a76ada8
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
static int static int
lubbock_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, lubbock_pcmcia_configure_socket(struct soc_pcmcia_socket *skt,
socket_state_t *state) const socket_state_t *state)
{ {
unsigned long flags, gpio, misc_wr; unsigned long flags, gpio, misc_wr;
int ret = 1; int ret = 1;
...@@ -168,8 +168,11 @@ lubbock_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, ...@@ -168,8 +168,11 @@ lubbock_pcmcia_configure_socket(struct soc_pcmcia_socket *skt,
/* Switch to 5V, Configure socket with 5V voltage */ /* Switch to 5V, Configure socket with 5V voltage */
PA_DWR &= ~(GPIO_bit(0) | GPIO_bit(1) | GPIO_bit(2) | GPIO_bit(3)); PA_DWR &= ~(GPIO_bit(0) | GPIO_bit(1) | GPIO_bit(2) | GPIO_bit(3));
PA_DDR &= ~(GPIO_bit(0) | GPIO_bit(1) | GPIO_bit(2) | GPIO_bit(3)); PA_DDR &= ~(GPIO_bit(0) | GPIO_bit(1) | GPIO_bit(2) | GPIO_bit(3));
state->Vcc = 50; /* We need to hack around the const qualifier as well to keep this
state->Vpp = 50; ugly workaround localized and not force it to the rest of the code.
Barf bags avaliable in the seat pocket in front of you! */
((socket_state_t *)state)->Vcc = 50;
((socket_state_t *)state)->Vpp = 50;
goto again; goto again;
} }
#endif #endif
......
...@@ -82,7 +82,7 @@ struct pcmcia_low_level { ...@@ -82,7 +82,7 @@ struct pcmcia_low_level {
void (*hw_shutdown)(struct soc_pcmcia_socket *); void (*hw_shutdown)(struct soc_pcmcia_socket *);
void (*socket_state)(struct soc_pcmcia_socket *, struct pcmcia_state *); void (*socket_state)(struct soc_pcmcia_socket *, struct pcmcia_state *);
int (*configure_socket)(struct soc_pcmcia_socket *, socket_state_t *); int (*configure_socket)(struct soc_pcmcia_socket *, const socket_state_t *);
/* /*
* Enable card status IRQs on (re-)initialisation. This can * Enable card status IRQs on (re-)initialisation. This can
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment