[PATCH 47/54] ARM: versatile: irq_data conversion.
Russell King - ARM Linux
linux at arm.linux.org.uk
Fri Dec 3 12:26:42 EST 2010
On Tue, Nov 30, 2010 at 02:41:19PM +0100, Lennert Buytenhek wrote:
> Signed-off-by: Lennert Buytenhek <buytenh at secretlab.ca>
Acked-by: Russell King <rmk+kernel at arm.linux.org.uk>
> ---
> arch/arm/mach-versatile/core.c | 16 ++++++++--------
> 1 files changed, 8 insertions(+), 8 deletions(-)
>
> 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;
> 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;
> writel(1 << irq, VA_SIC_BASE + SIC_IRQ_ENABLE_SET);
> }
>
> static struct irq_chip sic_chip = {
> - .name = "SIC",
> - .ack = sic_mask_irq,
> - .mask = sic_mask_irq,
> - .unmask = sic_unmask_irq,
> + .name = "SIC",
> + .irq_ack = sic_mask_irq,
> + .irq_mask = sic_mask_irq,
> + .irq_unmask = sic_unmask_irq,
> };
>
> static void
> --
> 1.7.1
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
More information about the linux-arm-kernel
mailing list