~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to arch/arm/plat-mxc/3ds_debugboard.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
 
101
101
        expio_irq = MXC_BOARD_IRQ_START;
102
102
        for (; int_valid != 0; int_valid >>= 1, expio_irq++) {
103
 
                struct irq_desc *d;
104
103
                if ((int_valid & 1) == 0)
105
104
                        continue;
106
 
                d = irq_desc + expio_irq;
107
 
                if (unlikely(!(d->handle_irq)))
108
 
                        pr_err("\nEXPIO irq: %d unhandled\n", expio_irq);
109
 
                else
110
 
                        d->handle_irq(expio_irq, d);
 
105
                generic_handle_irq(expio_irq);
111
106
        }
112
107
 
113
108
        desc->irq_data.chip->irq_ack(&desc->irq_data);
186
181
        __raw_writew(0x1F, brd_io + INTR_MASK_REG);
187
182
        for (i = MXC_EXP_IO_BASE;
188
183
             i < (MXC_EXP_IO_BASE + MXC_MAX_EXP_IO_LINES); i++) {
189
 
                set_irq_chip(i, &expio_irq_chip);
190
 
                set_irq_handler(i, handle_level_irq);
 
184
                irq_set_chip_and_handler(i, &expio_irq_chip, handle_level_irq);
191
185
                set_irq_flags(i, IRQF_VALID);
192
186
        }
193
 
        set_irq_type(p_irq, IRQF_TRIGGER_LOW);
194
 
        set_irq_chained_handler(p_irq, mxc_expio_irq_handler);
 
187
        irq_set_irq_type(p_irq, IRQF_TRIGGER_LOW);
 
188
        irq_set_chained_handler(p_irq, mxc_expio_irq_handler);
195
189
 
196
190
        /* Register Lan device on the debugboard */
197
191
        smsc911x_resources[0].start = LAN9217_BASE_ADDR(base);