[PATCH] pxa/mioa701: use gpio arrays for global and gsm gpio initialization

Eric Miao eric.y.miao at gmail.com
Sun Apr 24 23:31:12 EDT 2011


On Fri, Apr 22, 2011 at 6:35 PM, pHilipp Zabel <philipp.zabel at gmail.com> wrote:
> On Thu, Apr 21, 2011 at 11:33 PM, Robert Jarzmik <robert.jarzmik at free.fr> wrote:
>> Philipp Zabel <philipp.zabel at gmail.com> writes:
>>
>>> gpio_request_arrays() / gpio_free_arrays() are functional replacements for
>>> mio_gpio_request() / mio_gpio_free(), which are now obsolete.
>>>
>>> Signed-off-by: Philipp Zabel <philipp.zabel at gmail.com>
>>
>> Acked-by: Robert Jarzmik <robert.jarzmik at free.fr>
>
> Dmitry Artamonow pointed out that contrary to
> hx4700/mio_gpio_request(), gpio_request_array() is silent when a
> request fails. Would you prefer something like
>
> int rc;
> rc = gpio_request_array(ARRAY_AND_SIZE(global_gpios));
> if (rc)
>    pr_err("MioA701: Failed to request GPIOs.\n");
>
> in there?
>

That will always be good.

> regards
> Philipp
>



More information about the linux-arm-kernel mailing list