diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2010-11-29 05:14:46 -0500 |
---|---|---|
committer | Lennert Buytenhek <buytenh@wantstofly.org> | 2011-01-13 11:19:04 -0500 |
commit | 37337a8d5e68d6e19075dbdb3acf4f1011dae972 (patch) | |
tree | e3247ffda75033a06104949d73e2825c2a9064e4 /arch/arm/mach-tegra/irq.c | |
parent | 76fbec842e176e57c2ba2c8efbac3367e59cc8f7 (diff) |
ARM: tegra: irq_data conversion.
Signed-off-by: Lennert Buytenhek <buytenh@secretlab.ca>
Diffstat (limited to 'arch/arm/mach-tegra/irq.c')
-rw-r--r-- | arch/arm/mach-tegra/irq.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/arch/arm/mach-tegra/irq.c b/arch/arm/mach-tegra/irq.c index 5407de01abf0..de7dfad6f769 100644 --- a/arch/arm/mach-tegra/irq.c +++ b/arch/arm/mach-tegra/irq.c | |||
@@ -46,30 +46,30 @@ | |||
46 | #define ICTLR_COP_IER_CLR 0x38 | 46 | #define ICTLR_COP_IER_CLR 0x38 |
47 | #define ICTLR_COP_IEP_CLASS 0x3c | 47 | #define ICTLR_COP_IEP_CLASS 0x3c |
48 | 48 | ||
49 | static void (*gic_mask_irq)(unsigned int irq); | 49 | static void (*gic_mask_irq)(struct irq_data *d); |
50 | static void (*gic_unmask_irq)(unsigned int irq); | 50 | static void (*gic_unmask_irq)(struct irq_data *d); |
51 | 51 | ||
52 | #define irq_to_ictlr(irq) (((irq)-32) >> 5) | 52 | #define irq_to_ictlr(irq) (((irq)-32) >> 5) |
53 | static void __iomem *tegra_ictlr_base = IO_ADDRESS(TEGRA_PRIMARY_ICTLR_BASE); | 53 | static void __iomem *tegra_ictlr_base = IO_ADDRESS(TEGRA_PRIMARY_ICTLR_BASE); |
54 | #define ictlr_to_virt(ictlr) (tegra_ictlr_base + (ictlr)*0x100) | 54 | #define ictlr_to_virt(ictlr) (tegra_ictlr_base + (ictlr)*0x100) |
55 | 55 | ||
56 | static void tegra_mask(unsigned int irq) | 56 | static void tegra_mask(struct irq_data *d) |
57 | { | 57 | { |
58 | void __iomem *addr = ictlr_to_virt(irq_to_ictlr(irq)); | 58 | void __iomem *addr = ictlr_to_virt(irq_to_ictlr(d->irq)); |
59 | gic_mask_irq(irq); | 59 | gic_mask_irq(d); |
60 | writel(1<<(irq&31), addr+ICTLR_CPU_IER_CLR); | 60 | writel(1<<(d->irq&31), addr+ICTLR_CPU_IER_CLR); |
61 | } | 61 | } |
62 | 62 | ||
63 | static void tegra_unmask(unsigned int irq) | 63 | static void tegra_unmask(struct irq_data *d) |
64 | { | 64 | { |
65 | void __iomem *addr = ictlr_to_virt(irq_to_ictlr(irq)); | 65 | void __iomem *addr = ictlr_to_virt(irq_to_ictlr(d->irq)); |
66 | gic_unmask_irq(irq); | 66 | gic_unmask_irq(d); |
67 | writel(1<<(irq&31), addr+ICTLR_CPU_IER_SET); | 67 | writel(1<<(d->irq&31), addr+ICTLR_CPU_IER_SET); |
68 | } | 68 | } |
69 | 69 | ||
70 | #ifdef CONFIG_PM | 70 | #ifdef CONFIG_PM |
71 | 71 | ||
72 | static int tegra_set_wake(unsigned int irq, unsigned int on) | 72 | static int tegra_set_wake(struct irq_data *d, unsigned int on) |
73 | { | 73 | { |
74 | return 0; | 74 | return 0; |
75 | } | 75 | } |
@@ -77,10 +77,10 @@ static int tegra_set_wake(unsigned int irq, unsigned int on) | |||
77 | 77 | ||
78 | static struct irq_chip tegra_irq = { | 78 | static struct irq_chip tegra_irq = { |
79 | .name = "PPI", | 79 | .name = "PPI", |
80 | .mask = tegra_mask, | 80 | .irq_mask = tegra_mask, |
81 | .unmask = tegra_unmask, | 81 | .irq_unmask = tegra_unmask, |
82 | #ifdef CONFIG_PM | 82 | #ifdef CONFIG_PM |
83 | .set_wake = tegra_set_wake, | 83 | .irq_set_wake = tegra_set_wake, |
84 | #endif | 84 | #endif |
85 | }; | 85 | }; |
86 | 86 | ||
@@ -98,11 +98,11 @@ void __init tegra_init_irq(void) | |||
98 | IO_ADDRESS(TEGRA_ARM_PERIF_BASE + 0x100)); | 98 | IO_ADDRESS(TEGRA_ARM_PERIF_BASE + 0x100)); |
99 | 99 | ||
100 | gic = get_irq_chip(29); | 100 | gic = get_irq_chip(29); |
101 | gic_unmask_irq = gic->unmask; | 101 | gic_unmask_irq = gic->irq_unmask; |
102 | gic_mask_irq = gic->mask; | 102 | gic_mask_irq = gic->irq_mask; |
103 | tegra_irq.ack = gic->ack; | 103 | tegra_irq.irq_ack = gic->irq_ack; |
104 | #ifdef CONFIG_SMP | 104 | #ifdef CONFIG_SMP |
105 | tegra_irq.set_affinity = gic->set_affinity; | 105 | tegra_irq.irq_set_affinity = gic->irq_set_affinity; |
106 | #endif | 106 | #endif |
107 | 107 | ||
108 | for (i = INT_PRI_BASE; i < INT_GPIO_BASE; i++) { | 108 | for (i = INT_PRI_BASE; i < INT_GPIO_BASE; i++) { |