Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 512b7938 authored by Jonathan Cameron's avatar Jonathan Cameron Committed by Eric Miao
Browse files

pcmcia: pxa2xx/vpac270: free gpios on exist rather than requesting

parent 9c0de494
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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));
}