[PATCH] pxa/hx4700: use gpio arrays for global gpio initialization

Dmitry Artamonow mad_soft at inbox.ru
Thu Apr 21 11:02:26 EDT 2011

On 21:55 Wed 20 Apr     , Philipp Zabel wrote:
> gpio_request_arrays() is a functional replacement for hx4700_gpio_request(),
> which is now obsolete.


> -	hx4700_gpio_request(ARRAY_AND_SIZE(global_gpios));
> +	gpio_request_array(ARRAY_AND_SIZE(global_gpios));

It would be nice to check return value here and print some message on error,
as unlike hx4700_gpio_request, gpio_request_array() is completely silent.

Best regards,
Dmitry "MAD" ArtAMonow

More information about the linux-arm-kernel mailing list