ARM: pxa/hx4700: Remove unwanted request for GPIO105
authorPaul Parsons <lost.distance@yahoo.com>
Tue, 13 Mar 2012 13:11:30 +0000 (13:11 +0000)
committerHaojian Zhuang <haojian.zhuang@gmail.com>
Wed, 14 Mar 2012 08:45:24 +0000 (16:45 +0800)
GPIO105 (nIR_ON) is requested twice: first in gpio_request_array(), then in
pxa_irda_probe(). Consequently the second request fails with EBUSY:

pxa2xx-ir: probe of pxa2xx-ir failed with error -16

This patch removes the first request, allowing pxa_irda_probe() to succeed.

Signed-off-by: Paul Parsons <lost.distance@yahoo.com>
Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com>
arch/arm/mach-pxa/hx4700.c

index 208eef1c04858a8ec76c40adcaddc131e5b5fb7f..c5fb105d26898b2d0e1c3637e4ae526ee8bf1af4 100644 (file)
@@ -830,7 +830,6 @@ static struct gpio global_gpios[] = {
        { GPIO32_HX4700_RS232_ON,         GPIOF_OUT_INIT_HIGH, "RS232_ON" },
        { GPIO71_HX4700_ASIC3_nRESET,     GPIOF_OUT_INIT_HIGH, "ASIC3_nRESET" },
        { GPIO82_HX4700_EUART_RESET,      GPIOF_OUT_INIT_HIGH, "EUART_RESET" },
-       { GPIO105_HX4700_nIR_ON,          GPIOF_OUT_INIT_HIGH, "nIR_EN" },
 };
 
 static void __init hx4700_init(void)
This page took 0.037417 seconds and 5 git commands to generate.