[SPARC]: Kill __irq_itoa().
This ugly hack was long overdue to die. It was a way to print out Sparc interrupts in a more freindly format, since IRQ numbers were arbitrary opaque 32-bit integers which vectored into PIL levels. These 32-bit integers were not necessarily in the 0-->NR_IRQS range, but the PILs they vectored to were. The idea now is that we will increase NR_IRQS a little bit and use a virtual<-->real IRQ number mapping scheme similar to PowerPC. That makes this IRQ printing hack irrelevant, and furthermore only a handful of drivers actually used __irq_itoa() making it even less useful. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -977,9 +977,9 @@ static int __init snd_amd7930_create(struct snd_card *card,
|
||||
|
||||
if (request_irq(irq_prop->pri, snd_amd7930_interrupt,
|
||||
SA_INTERRUPT | SA_SHIRQ, "amd7930", amd)) {
|
||||
snd_printk("amd7930-%d: Unable to grab IRQ %s\n",
|
||||
snd_printk("amd7930-%d: Unable to grab IRQ %d\n",
|
||||
dev,
|
||||
__irq_itoa(irq_prop->pri));
|
||||
irq_prop->pri);
|
||||
snd_amd7930_free(amd);
|
||||
return -EBUSY;
|
||||
}
|
||||
@@ -1063,11 +1063,11 @@ static int __init amd7930_attach(int prom_node, struct sbus_dev *sdev)
|
||||
|
||||
strcpy(card->driver, "AMD7930");
|
||||
strcpy(card->shortname, "Sun AMD7930");
|
||||
sprintf(card->longname, "%s at 0x%02lx:0x%08lx, irq %s",
|
||||
sprintf(card->longname, "%s at 0x%02lx:0x%08lx, irq %d",
|
||||
card->shortname,
|
||||
rp->flags & 0xffL,
|
||||
rp->start,
|
||||
__irq_itoa(irq_prop.pri));
|
||||
irq_prop.pri);
|
||||
|
||||
if ((err = snd_amd7930_create(card, sdev, rp, reg_prop.reg_size,
|
||||
&irq_prop, dev, &amd)) < 0)
|
||||
|
@@ -2003,9 +2003,8 @@ static int __init snd_cs4231_sbus_create(struct snd_card *card,
|
||||
|
||||
if (request_irq(sdev->irqs[0], snd_cs4231_sbus_interrupt,
|
||||
SA_SHIRQ, "cs4231", chip)) {
|
||||
snd_printdd("cs4231-%d: Unable to grab SBUS IRQ %s\n",
|
||||
dev,
|
||||
__irq_itoa(sdev->irqs[0]));
|
||||
snd_printdd("cs4231-%d: Unable to grab SBUS IRQ %d\n",
|
||||
dev, sdev->irqs[0]);
|
||||
snd_cs4231_sbus_free(chip);
|
||||
return -EBUSY;
|
||||
}
|
||||
@@ -2038,11 +2037,11 @@ static int __init cs4231_sbus_attach(struct sbus_dev *sdev)
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
sprintf(card->longname, "%s at 0x%02lx:0x%08lx, irq %s",
|
||||
sprintf(card->longname, "%s at 0x%02lx:0x%08lx, irq %d",
|
||||
card->shortname,
|
||||
rp->flags & 0xffL,
|
||||
rp->start,
|
||||
__irq_itoa(sdev->irqs[0]));
|
||||
sdev->irqs[0]);
|
||||
|
||||
if ((err = snd_cs4231_sbus_create(card, sdev, dev, &cp)) < 0) {
|
||||
snd_card_free(card);
|
||||
@@ -2244,10 +2243,10 @@ static int __init cs4231_ebus_attach(struct linux_ebus_device *edev)
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
sprintf(card->longname, "%s at 0x%lx, irq %s",
|
||||
sprintf(card->longname, "%s at 0x%lx, irq %d",
|
||||
card->shortname,
|
||||
edev->resource[0].start,
|
||||
__irq_itoa(edev->irqs[0]));
|
||||
edev->irqs[0]);
|
||||
|
||||
if ((err = snd_cs4231_ebus_create(card, edev, dev, &chip)) < 0) {
|
||||
snd_card_free(card);
|
||||
|
@@ -2645,9 +2645,9 @@ static int __init dbri_attach(int prom_node, struct sbus_dev *sdev)
|
||||
strcpy(card->driver, "DBRI");
|
||||
strcpy(card->shortname, "Sun DBRI");
|
||||
rp = &sdev->resource[0];
|
||||
sprintf(card->longname, "%s at 0x%02lx:0x%08lx, irq %s",
|
||||
sprintf(card->longname, "%s at 0x%02lx:0x%08lx, irq %d",
|
||||
card->shortname,
|
||||
rp->flags & 0xffL, rp->start, __irq_itoa(irq.pri));
|
||||
rp->flags & 0xffL, rp->start, irq.pri);
|
||||
|
||||
if ((err = snd_dbri_create(card, sdev, &irq, dev)) < 0) {
|
||||
snd_card_free(card);
|
||||
|
Reference in New Issue
Block a user