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

« back to all changes in this revision

Viewing changes to drivers/parisc/eisa.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:
144
144
 
145
145
 
146
146
/* called by free irq */
147
 
static void eisa_mask_irq(unsigned int irq)
 
147
static void eisa_mask_irq(struct irq_data *d)
148
148
{
 
149
        unsigned int irq = d->irq;
149
150
        unsigned long flags;
150
151
 
151
152
        EISA_DBG("disable irq %d\n", irq);
164
165
}
165
166
 
166
167
/* called by request irq */
167
 
static void eisa_unmask_irq(unsigned int irq)
 
168
static void eisa_unmask_irq(struct irq_data *d)
168
169
{
 
170
        unsigned int irq = d->irq;
169
171
        unsigned long flags;
170
172
        EISA_DBG("enable irq %d\n", irq);
171
173
                
183
185
}
184
186
 
185
187
static struct irq_chip eisa_interrupt_type = {
186
 
        .name   =       "EISA",
187
 
        .unmask =       eisa_unmask_irq,
188
 
        .mask   =       eisa_mask_irq,
 
188
        .name           =       "EISA",
 
189
        .irq_unmask     =       eisa_unmask_irq,
 
190
        .irq_mask       =       eisa_mask_irq,
189
191
};
190
192
 
191
193
static irqreturn_t eisa_irq(int wax_irq, void *intr_dev)
338
340
        /* Reserve IRQ2 */
339
341
        setup_irq(2, &irq2_action);
340
342
        for (i = 0; i < 16; i++) {
341
 
                set_irq_chip_and_handler(i, &eisa_interrupt_type,
 
343
                irq_set_chip_and_handler(i, &eisa_interrupt_type,
342
344
                                         handle_simple_irq);
343
345
        }
344
346