diff options
| -rw-r--r-- | arch/arm/mach-davinci/cp_intc.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/arch/arm/mach-davinci/cp_intc.c b/arch/arm/mach-davinci/cp_intc.c index 6ab56af3be6b..25221dfe8a20 100644 --- a/arch/arm/mach-davinci/cp_intc.c +++ b/arch/arm/mach-davinci/cp_intc.c | |||
| @@ -77,12 +77,12 @@ static void davinci_cp_intc_unmask_irq(struct irq_data *d) | |||
| 77 | static int davinci_cp_intc_set_irq_type(struct irq_data *d, | 77 | static int davinci_cp_intc_set_irq_type(struct irq_data *d, |
| 78 | unsigned int flow_type) | 78 | unsigned int flow_type) |
| 79 | { | 79 | { |
| 80 | unsigned reg = BIT_WORD(d->hwirq); | 80 | unsigned int reg, mask, polarity, type; |
| 81 | unsigned mask = BIT_MASK(d->hwirq); | 81 | |
| 82 | unsigned polarity = davinci_cp_intc_read( | 82 | reg = BIT_WORD(d->hwirq); |
| 83 | DAVINCI_CP_INTC_SYS_POLARITY(reg)); | 83 | mask = BIT_MASK(d->hwirq); |
| 84 | unsigned type = davinci_cp_intc_read( | 84 | polarity = davinci_cp_intc_read(DAVINCI_CP_INTC_SYS_POLARITY(reg)); |
| 85 | DAVINCI_CP_INTC_SYS_TYPE(reg)); | 85 | type = davinci_cp_intc_read(DAVINCI_CP_INTC_SYS_TYPE(reg)); |
| 86 | 86 | ||
| 87 | switch (flow_type) { | 87 | switch (flow_type) { |
| 88 | case IRQ_TYPE_EDGE_RISING: | 88 | case IRQ_TYPE_EDGE_RISING: |
| @@ -150,6 +150,7 @@ static int davinci_cp_intc_host_map(struct irq_domain *h, unsigned int virq, | |||
| 150 | irq_set_chip(virq, &davinci_cp_intc_irq_chip); | 150 | irq_set_chip(virq, &davinci_cp_intc_irq_chip); |
| 151 | irq_set_probe(virq); | 151 | irq_set_probe(virq); |
| 152 | irq_set_handler(virq, handle_edge_irq); | 152 | irq_set_handler(virq, handle_edge_irq); |
| 153 | |||
| 153 | return 0; | 154 | return 0; |
| 154 | } | 155 | } |
| 155 | 156 | ||
