[PATCH] omap3: beaglexm: fix user button.

Sergei Shtylyov sshtylyov at mvista.com
Fri Mar 18 09:00:03 EDT 2011


Hello.

On 17-03-2011 15:44, Javier Martin wrote:

> User push button in Beagleboard xM is 4 instead of 7.

> Signed-off-by: Javier Martin<javier.martin at vista-silicon.com>
[...]

> diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
> index 46d814a..abf87d1 100644
> --- a/arch/arm/mach-omap2/board-omap3beagle.c
> +++ b/arch/arm/mach-omap2/board-omap3beagle.c
> @@ -615,6 +615,10 @@ static void __init omap3_beagle_init(void)
>   	omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
>   	omap3_beagle_init_rev();
>   	omap3_beagle_i2c_init();
> +	/* xM version uses pin 4 instead of 7 for user button */
> +	if (omap3_beagle_get_rev() == OMAP3BEAGLE_BOARD_XM) {
> +		gpio_buttons[0].gpio = 4;
> +	}

    I think checkpatch.pl should warn about unneeded {}.

WBR, Sergei



More information about the linux-arm-kernel mailing list