Skip to content

Commit

Permalink
[ARM] 5442/1: pxa/cm-x255: fix reverse RDY gpios in PCMCIA driver
Browse files Browse the repository at this point in the history
fix reverse RDY gpios in PCMCIA driver

Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Mike Rapoport authored and Russell King committed Apr 2, 2009
1 parent 7f96b1c commit 91c39dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pcmcia/pxa2xx_cm_x255.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ static void cmx255_pcmcia_socket_state(struct soc_pcmcia_socket *skt,
struct pcmcia_state *state)
{
int cd = skt->nr ? GPIO_PCMCIA_S1_CD_VALID : GPIO_PCMCIA_S0_CD_VALID;
int rdy = skt->nr ? GPIO_PCMCIA_S0_RDYINT : GPIO_PCMCIA_S1_RDYINT;
int rdy = skt->nr ? GPIO_PCMCIA_S1_RDYINT : GPIO_PCMCIA_S0_RDYINT;

state->detect = !gpio_get_value(cd);
state->ready = !!gpio_get_value(rdy);
Expand Down

0 comments on commit 91c39dc

Please sign in to comment.