parport: serial: Get rid of IRQ_NONE abuse
IRQ_NONE definition is solely for IRQ handlers and not for generic probe code. Replace it with plain integer. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20210721150216.64823-1-andriy.shevchenko@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0912ef4855
commit
09b18f2f3b
|
@ -607,11 +607,12 @@ static int parport_register(struct pci_dev *dev, const struct pci_device_id *id)
|
||||||
def.) */
|
def.) */
|
||||||
/* TODO: test if sharing interrupts works */
|
/* TODO: test if sharing interrupts works */
|
||||||
irq = dev->irq;
|
irq = dev->irq;
|
||||||
if (irq == IRQ_NONE) {
|
if (irq == 0)
|
||||||
|
irq = PARPORT_IRQ_NONE;
|
||||||
|
if (irq == PARPORT_IRQ_NONE) {
|
||||||
dev_dbg(&dev->dev,
|
dev_dbg(&dev->dev,
|
||||||
"PCI parallel port detected: I/O at %#lx(%#lx)\n",
|
"PCI parallel port detected: I/O at %#lx(%#lx)\n",
|
||||||
io_lo, io_hi);
|
io_lo, io_hi);
|
||||||
irq = PARPORT_IRQ_NONE;
|
|
||||||
} else {
|
} else {
|
||||||
dev_dbg(&dev->dev,
|
dev_dbg(&dev->dev,
|
||||||
"PCI parallel port detected: I/O at %#lx(%#lx), IRQ %d\n",
|
"PCI parallel port detected: I/O at %#lx(%#lx), IRQ %d\n",
|
||||||
|
|
Loading…
Reference in New Issue