[PATCH 47/54] ARM: versatile: irq_data conversion.
Sergei Shtylyov
sshtylyov at mvista.com
Mon Dec 6 07:10:24 EST 2010
On 30-11-2010 16:41, Lennert Buytenhek wrote:
> Signed-off-by: Lennert Buytenhek<buytenh at secretlab.ca>
[...]
> diff --git a/arch/arm/mach-versatile/core.c b/arch/arm/mach-versatile/core.c
> index e38acb0..9b9b6fa 100644
> --- a/arch/arm/mach-versatile/core.c
> +++ b/arch/arm/mach-versatile/core.c
> @@ -62,23 +62,23 @@
> #define VA_VIC_BASE __io_address(VERSATILE_VIC_BASE)
> #define VA_SIC_BASE __io_address(VERSATILE_SIC_BASE)
>
> -static void sic_mask_irq(unsigned int irq)
> +static void sic_mask_irq(struct irq_data *d)
> {
> - irq -= IRQ_SIC_START;
> + unsigned int irq = d->irq - IRQ_SIC_START;
Perhaps should've inserted an empty line here...
> writel(1<< irq, VA_SIC_BASE + SIC_IRQ_ENABLE_CLEAR);
> }
>
> -static void sic_unmask_irq(unsigned int irq)
> +static void sic_unmask_irq(struct irq_data *d)
> {
> - irq -= IRQ_SIC_START;
> + unsigned int irq = d->irq - IRQ_SIC_START;
Here too.
> writel(1<< irq, VA_SIC_BASE + SIC_IRQ_ENABLE_SET);
> }
WBR, Sergei
More information about the linux-arm-kernel
mailing list