summaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/pxa2xx_vpac270.c
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@cam.ac.uk>2011-06-06 16:24:13 +0200
committerEric Miao <eric.y.miao@gmail.com>2011-07-11 08:26:34 +0200
commit512b7938fefd03d512463aa597a1216cf088dfe3 (patch)
tree67c26fd702467cf97d8005552089e26c80728f24 /drivers/pcmcia/pxa2xx_vpac270.c
parentARM: pxa/raumfeld: fix device name for codec ak4104 (diff)
downloadlinux-512b7938fefd03d512463aa597a1216cf088dfe3.tar.xz
linux-512b7938fefd03d512463aa597a1216cf088dfe3.zip
pcmcia: pxa2xx/vpac270: free gpios on exist rather than requesting
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Acked-by: Marek Vasut <marek.vasut@gmail.com> Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'drivers/pcmcia/pxa2xx_vpac270.c')
-rw-r--r--drivers/pcmcia/pxa2xx_vpac270.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pcmcia/pxa2xx_vpac270.c b/drivers/pcmcia/pxa2xx_vpac270.c
index 712baab3c83d..e956f659089a 100644
--- a/drivers/pcmcia/pxa2xx_vpac270.c
+++ b/drivers/pcmcia/pxa2xx_vpac270.c
@@ -76,10 +76,10 @@ static int vpac270_pcmcia_hw_init(struct soc_pcmcia_socket *skt)
static void vpac270_pcmcia_hw_shutdown(struct soc_pcmcia_socket *skt)
{
if (skt->nr == 0)
- gpio_request_array(vpac270_pcmcia_gpios,
+ gpio_free_array(vpac270_pcmcia_gpios,
ARRAY_SIZE(vpac270_pcmcia_gpios));
else
- gpio_request_array(vpac270_cf_gpios,
+ gpio_free_array(vpac270_cf_gpios,
ARRAY_SIZE(vpac270_cf_gpios));
}