[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:
@ -1850,7 +1850,6 @@ static int goku_probe(struct pci_dev *pdev, const struct pci_device_id *id)
|
||||
unsigned long resource, len;
|
||||
void __iomem *base = NULL;
|
||||
int retval;
|
||||
char buf [8], *bufp;
|
||||
|
||||
/* if you want to support more than one controller in a system,
|
||||
* usb_gadget_driver_{register,unregister}() must change.
|
||||
@ -1913,20 +1912,14 @@ static int goku_probe(struct pci_dev *pdev, const struct pci_device_id *id)
|
||||
pci_set_drvdata(pdev, dev);
|
||||
INFO(dev, "%s\n", driver_desc);
|
||||
INFO(dev, "version: " DRIVER_VERSION " %s\n", dmastr());
|
||||
#ifndef __sparc__
|
||||
scnprintf(buf, sizeof buf, "%d", pdev->irq);
|
||||
bufp = buf;
|
||||
#else
|
||||
bufp = __irq_itoa(pdev->irq);
|
||||
#endif
|
||||
INFO(dev, "irq %s, pci mem %p\n", bufp, base);
|
||||
INFO(dev, "irq %d, pci mem %p\n", pdev->irq, base);
|
||||
|
||||
/* init to known state, then setup irqs */
|
||||
udc_reset(dev);
|
||||
udc_reinit (dev);
|
||||
if (request_irq(pdev->irq, goku_irq, SA_SHIRQ/*|SA_SAMPLE_RANDOM*/,
|
||||
driver_name, dev) != 0) {
|
||||
DBG(dev, "request interrupt %s failed\n", bufp);
|
||||
DBG(dev, "request interrupt %d failed\n", pdev->irq);
|
||||
retval = -EBUSY;
|
||||
goto done;
|
||||
}
|
||||
|
@ -2822,7 +2822,6 @@ static int net2280_probe (struct pci_dev *pdev, const struct pci_device_id *id)
|
||||
unsigned long resource, len;
|
||||
void __iomem *base = NULL;
|
||||
int retval, i;
|
||||
char buf [8], *bufp;
|
||||
|
||||
/* if you want to support more than one controller in a system,
|
||||
* usb_gadget_driver_{register,unregister}() must change.
|
||||
@ -2896,15 +2895,10 @@ static int net2280_probe (struct pci_dev *pdev, const struct pci_device_id *id)
|
||||
retval = -ENODEV;
|
||||
goto done;
|
||||
}
|
||||
#ifndef __sparc__
|
||||
scnprintf (buf, sizeof buf, "%d", pdev->irq);
|
||||
bufp = buf;
|
||||
#else
|
||||
bufp = __irq_itoa(pdev->irq);
|
||||
#endif
|
||||
|
||||
if (request_irq (pdev->irq, net2280_irq, SA_SHIRQ, driver_name, dev)
|
||||
!= 0) {
|
||||
ERROR (dev, "request interrupt %s failed\n", bufp);
|
||||
ERROR (dev, "request interrupt %d failed\n", pdev->irq);
|
||||
retval = -EBUSY;
|
||||
goto done;
|
||||
}
|
||||
@ -2953,8 +2947,8 @@ static int net2280_probe (struct pci_dev *pdev, const struct pci_device_id *id)
|
||||
|
||||
/* done */
|
||||
INFO (dev, "%s\n", driver_desc);
|
||||
INFO (dev, "irq %s, pci mem %p, chip rev %04x\n",
|
||||
bufp, base, dev->chiprev);
|
||||
INFO (dev, "irq %d, pci mem %p, chip rev %04x\n",
|
||||
pdev->irq, base, dev->chiprev);
|
||||
INFO (dev, "version: " DRIVER_VERSION "; dma %s\n",
|
||||
use_dma
|
||||
? (use_dma_chaining ? "chaining" : "enabled")
|
||||
|
Reference in New Issue
Block a user