[PATCH 02/11] at91/boards: use -1 for invalid gpio

Nicolas Ferre nicolas.ferre at atmel.com
Wed Sep 21 05:28:36 EDT 2011


Le 19/09/2011 14:51, Jean-Christophe PLAGNIOL-VILLARD :
> this will allow to use gpio_is_valid
> 
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
> Cc: Nicolas Ferre <nicolas.ferre at atmel.com>

[..]

> ---
>  34 files changed, 141 insertions(+), 50 deletions(-)
> 
> diff --git a/arch/arm/mach-at91/board-1arm.c b/arch/arm/mach-at91/board-1arm.c
> index 5aa5885..17d9163 100644
> --- a/arch/arm/mach-at91/board-1arm.c
> +++ b/arch/arm/mach-at91/board-1arm.c
> @@ -70,6 +70,7 @@ static struct at91_eth_data __initdata onearm_eth_data = {
>  
>  static struct at91_usbh_data __initdata onearm_usbh_data = {
>  	.ports		= 1,
> +	.vbus_pin	= {-1, -1},

I would prefer to use "-EINVAL" as stated in the documentation.

Best regards,
-- 
Nicolas Ferre




More information about the linux-arm-kernel mailing list