diff options
author | Joachim Eastwood <manabian@gmail.com> | 2013-06-06 04:24:14 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-07-21 21:21:25 -0400 |
commit | 5eb2698932989f855e3427b0860771611f831a69 (patch) | |
tree | 3ee3c9f8778d543e65865a76ded4c97c619b034b /drivers/pcmcia | |
parent | 540005dcb39acd12c52d2a580a85ccfd5de76fc1 (diff) |
pcmcia: at91_cf: fix gpio_get_value in at91_cf_get_status
commit e39506b466edcda2a7e9d0174d7987ae654137b7 upstream.
Commit 80af9e6d (pcmcia at91_cf: fix raw gpio number usage) forgot
to change the parameter in gpio_get_value after adding gpio
validation.
Signed-off-by: Joachim Eastwood <manabian@gmail.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/pcmcia')
-rw-r--r-- | drivers/pcmcia/at91_cf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pcmcia/at91_cf.c b/drivers/pcmcia/at91_cf.c index 01463c781847..1b2c6317c772 100644 --- a/drivers/pcmcia/at91_cf.c +++ b/drivers/pcmcia/at91_cf.c | |||
@@ -100,9 +100,9 @@ static int at91_cf_get_status(struct pcmcia_socket *s, u_int *sp) | |||
100 | int vcc = gpio_is_valid(cf->board->vcc_pin); | 100 | int vcc = gpio_is_valid(cf->board->vcc_pin); |
101 | 101 | ||
102 | *sp = SS_DETECT | SS_3VCARD; | 102 | *sp = SS_DETECT | SS_3VCARD; |
103 | if (!rdy || gpio_get_value(rdy)) | 103 | if (!rdy || gpio_get_value(cf->board->irq_pin)) |
104 | *sp |= SS_READY; | 104 | *sp |= SS_READY; |
105 | if (!vcc || gpio_get_value(vcc)) | 105 | if (!vcc || gpio_get_value(cf->board->vcc_pin)) |
106 | *sp |= SS_POWERON; | 106 | *sp |= SS_POWERON; |
107 | } else | 107 | } else |
108 | *sp = 0; | 108 | *sp = 0; |