[PATCH 13/54] ARM: dove: irq_data conversion.

Nicolas Pitre nico at fluxnic.net
Tue Nov 30 19:55:08 EST 2010


On Tue, 30 Nov 2010, Lennert Buytenhek wrote:

> Signed-off-by: Lennert Buytenhek <buytenh at secretlab.ca>

Acked-by: Nicolas Pitre <nico at fluxnic.net>

> ---
>  arch/arm/mach-dove/irq.c |   18 +++++++++---------
>  1 files changed, 9 insertions(+), 9 deletions(-)
> 
> diff --git a/arch/arm/mach-dove/irq.c b/arch/arm/mach-dove/irq.c
> index 61bfcb3..9317f05 100644
> --- a/arch/arm/mach-dove/irq.c
> +++ b/arch/arm/mach-dove/irq.c
> @@ -36,9 +36,9 @@ static void gpio_irq_handler(unsigned int irq, struct irq_desc *desc)
>  	}
>  }
>  
> -static void pmu_irq_mask(unsigned int irq)
> +static void pmu_irq_mask(struct irq_data *d)
>  {
> -	int pin = irq_to_pmu(irq);
> +	int pin = irq_to_pmu(d->irq);
>  	u32 u;
>  
>  	u = readl(PMU_INTERRUPT_MASK);
> @@ -46,9 +46,9 @@ static void pmu_irq_mask(unsigned int irq)
>  	writel(u, PMU_INTERRUPT_MASK);
>  }
>  
> -static void pmu_irq_unmask(unsigned int irq)
> +static void pmu_irq_unmask(struct irq_data *d)
>  {
> -	int pin = irq_to_pmu(irq);
> +	int pin = irq_to_pmu(d->irq);
>  	u32 u;
>  
>  	u = readl(PMU_INTERRUPT_MASK);
> @@ -56,9 +56,9 @@ static void pmu_irq_unmask(unsigned int irq)
>  	writel(u, PMU_INTERRUPT_MASK);
>  }
>  
> -static void pmu_irq_ack(unsigned int irq)
> +static void pmu_irq_ack(struct irq_data *d)
>  {
> -	int pin = irq_to_pmu(irq);
> +	int pin = irq_to_pmu(d->irq);
>  	u32 u;
>  
>  	u = ~(1 << (pin & 31));
> @@ -67,9 +67,9 @@ static void pmu_irq_ack(unsigned int irq)
>  
>  static struct irq_chip pmu_irq_chip = {
>  	.name		= "pmu_irq",
> -	.mask		= pmu_irq_mask,
> -	.unmask		= pmu_irq_unmask,
> -	.ack		= pmu_irq_ack,
> +	.irq_mask	= pmu_irq_mask,
> +	.irq_unmask	= pmu_irq_unmask,
> +	.irq_ack	= pmu_irq_ack,
>  };
>  
>  static void pmu_irq_handler(unsigned int irq, struct irq_desc *desc)
> -- 
> 1.7.1
> 



More information about the linux-arm-kernel mailing list