[PATCH 1/4] ARM: tegra: Fix typo in TEGRA_IRQ_TO_GPIO

Colin Cross ccross at google.com
Tue Feb 22 14:58:26 EST 2011


On Sat, Feb 19, 2011 at 7:38 PM, Stephen Warren <swarren at nvidia.com> wrote:
> Signed-off-by: Stephen Warren <swarren at nvidia.com>
> ---
>  arch/arm/mach-tegra/include/mach/gpio.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/mach-tegra/include/mach/gpio.h b/arch/arm/mach-tegra/include/mach/gpio.h
> index e31f486..12a7cf6 100644
> --- a/arch/arm/mach-tegra/include/mach/gpio.h
> +++ b/arch/arm/mach-tegra/include/mach/gpio.h
> @@ -31,7 +31,7 @@
>  #define gpio_cansleep          __gpio_cansleep
>
>  #define TEGRA_GPIO_TO_IRQ(gpio) (INT_GPIO_BASE + (gpio))
> -#define TEGRA_IRQ_TO_GPIO(irq) ((gpio) - INT_GPIO_BASE)
> +#define TEGRA_IRQ_TO_GPIO(irq) ((irq) - INT_GPIO_BASE)
>
>  static inline int gpio_to_irq(unsigned int gpio)
>  {
> --
> 1.7.1
>
>

Pushed to for-next



More information about the linux-arm-kernel mailing list