[PARISC] Convert to new irq_chip functions
Convert all the parisc driver interrupt handlers (dino, eisa, gsc, iosapic and superio) as well as the cpu interrupts. Prepare show_interrupts for GENERIC_HARDIRQS_NO_DEPRECATED and finally selects that Kconfig option [jejb: compile and testing fixes] Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:

committed by
James Bottomley

parent
9804c9eaea
commit
4c4231ea2f
@@ -296,25 +296,25 @@ static struct pci_port_ops dino_port_ops = {
|
||||
.outl = dino_out32
|
||||
};
|
||||
|
||||
static void dino_mask_irq(unsigned int irq)
|
||||
static void dino_mask_irq(struct irq_data *d)
|
||||
{
|
||||
struct dino_device *dino_dev = get_irq_chip_data(irq);
|
||||
int local_irq = gsc_find_local_irq(irq, dino_dev->global_irq, DINO_LOCAL_IRQS);
|
||||
struct dino_device *dino_dev = irq_data_get_irq_chip_data(d);
|
||||
int local_irq = gsc_find_local_irq(d->irq, dino_dev->global_irq, DINO_LOCAL_IRQS);
|
||||
|
||||
DBG(KERN_WARNING "%s(0x%p, %d)\n", __func__, dino_dev, irq);
|
||||
DBG(KERN_WARNING "%s(0x%p, %d)\n", __func__, dino_dev, d->irq);
|
||||
|
||||
/* Clear the matching bit in the IMR register */
|
||||
dino_dev->imr &= ~(DINO_MASK_IRQ(local_irq));
|
||||
__raw_writel(dino_dev->imr, dino_dev->hba.base_addr+DINO_IMR);
|
||||
}
|
||||
|
||||
static void dino_unmask_irq(unsigned int irq)
|
||||
static void dino_unmask_irq(struct irq_data *d)
|
||||
{
|
||||
struct dino_device *dino_dev = get_irq_chip_data(irq);
|
||||
int local_irq = gsc_find_local_irq(irq, dino_dev->global_irq, DINO_LOCAL_IRQS);
|
||||
struct dino_device *dino_dev = irq_data_get_irq_chip_data(d);
|
||||
int local_irq = gsc_find_local_irq(d->irq, dino_dev->global_irq, DINO_LOCAL_IRQS);
|
||||
u32 tmp;
|
||||
|
||||
DBG(KERN_WARNING "%s(0x%p, %d)\n", __func__, dino_dev, irq);
|
||||
DBG(KERN_WARNING "%s(0x%p, %d)\n", __func__, dino_dev, d->irq);
|
||||
|
||||
/*
|
||||
** clear pending IRQ bits
|
||||
@@ -346,9 +346,9 @@ static void dino_unmask_irq(unsigned int irq)
|
||||
}
|
||||
|
||||
static struct irq_chip dino_interrupt_type = {
|
||||
.name = "GSC-PCI",
|
||||
.unmask = dino_unmask_irq,
|
||||
.mask = dino_mask_irq,
|
||||
.name = "GSC-PCI",
|
||||
.irq_unmask = dino_unmask_irq,
|
||||
.irq_mask = dino_mask_irq,
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user