mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
sparc64: rename virt_irq => irq - II
The generic irq support uses the term 'irq' for the allocated irq number. Fix it so sparc64 use the same term for an irq as the generic irq support does. For a naive reader this is less confusing. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
fe41493f74
commit
44ed3c0c47
7 changed files with 53 additions and 53 deletions
|
@ -227,7 +227,7 @@ static unsigned int sabre_irq_build(struct device_node *dp,
|
|||
unsigned long imap, iclr;
|
||||
unsigned long imap_off, iclr_off;
|
||||
int inofixup = 0;
|
||||
int virt_irq;
|
||||
int irq;
|
||||
|
||||
ino &= 0x3f;
|
||||
if (ino < SABRE_ONBOARD_IRQ_BASE) {
|
||||
|
@ -247,7 +247,7 @@ static unsigned int sabre_irq_build(struct device_node *dp,
|
|||
if ((ino & 0x20) == 0)
|
||||
inofixup = ino & 0x03;
|
||||
|
||||
virt_irq = build_irq(inofixup, iclr, imap);
|
||||
irq = build_irq(inofixup, iclr, imap);
|
||||
|
||||
/* If the parent device is a PCI<->PCI bridge other than
|
||||
* APB, we have to install a pre-handler to ensure that
|
||||
|
@ -256,13 +256,13 @@ static unsigned int sabre_irq_build(struct device_node *dp,
|
|||
*/
|
||||
regs = of_get_property(dp, "reg", NULL);
|
||||
if (regs && sabre_device_needs_wsync(dp)) {
|
||||
irq_install_pre_handler(virt_irq,
|
||||
irq_install_pre_handler(irq,
|
||||
sabre_wsync_handler,
|
||||
(void *) (long) regs->phys_hi,
|
||||
(void *) irq_data);
|
||||
}
|
||||
|
||||
return virt_irq;
|
||||
return irq;
|
||||
}
|
||||
|
||||
static void __init sabre_irq_trans_init(struct device_node *dp)
|
||||
|
@ -382,7 +382,7 @@ static unsigned int schizo_irq_build(struct device_node *dp,
|
|||
unsigned long pbm_regs = irq_data->pbm_regs;
|
||||
unsigned long imap, iclr;
|
||||
int ign_fixup;
|
||||
int virt_irq;
|
||||
int irq;
|
||||
int is_tomatillo;
|
||||
|
||||
ino &= 0x3f;
|
||||
|
@ -409,17 +409,17 @@ static unsigned int schizo_irq_build(struct device_node *dp,
|
|||
ign_fixup = (1 << 6);
|
||||
}
|
||||
|
||||
virt_irq = build_irq(ign_fixup, iclr, imap);
|
||||
irq = build_irq(ign_fixup, iclr, imap);
|
||||
|
||||
if (is_tomatillo) {
|
||||
irq_install_pre_handler(virt_irq,
|
||||
irq_install_pre_handler(irq,
|
||||
tomatillo_wsync_handler,
|
||||
((irq_data->chip_version <= 4) ?
|
||||
(void *) 1 : (void *) 0),
|
||||
(void *) irq_data->sync_reg);
|
||||
}
|
||||
|
||||
return virt_irq;
|
||||
return irq;
|
||||
}
|
||||
|
||||
static void __init __schizo_irq_trans_init(struct device_node *dp,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue