diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2021-07-21 18:02:15 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-07-29 17:08:40 +0200 |
commit | 09b18f2f3be256cc32eff028a9416a2ae19d5487 (patch) | |
tree | b4918d0c7bb2c883ae3cdcede06b68dd7565d493 /drivers/parport/parport_serial.c | |
parent | 0912ef4855e8e463a8d724efd6bee08e9b5d3f1e (diff) | |
download | linux-09b18f2f3be256cc32eff028a9416a2ae19d5487.tar.gz linux-09b18f2f3be256cc32eff028a9416a2ae19d5487.tar.bz2 linux-09b18f2f3be256cc32eff028a9416a2ae19d5487.zip |
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>
Diffstat (limited to 'drivers/parport/parport_serial.c')
-rw-r--r-- | drivers/parport/parport_serial.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/parport/parport_serial.c b/drivers/parport/parport_serial.c index 96b888bb49c6..14e2427676f0 100644 --- a/drivers/parport/parport_serial.c +++ b/drivers/parport/parport_serial.c @@ -607,11 +607,12 @@ static int parport_register(struct pci_dev *dev, const struct pci_device_id *id) def.) */ /* TODO: test if sharing interrupts works */ irq = dev->irq; - if (irq == IRQ_NONE) { + if (irq == 0) + irq = PARPORT_IRQ_NONE; + if (irq == PARPORT_IRQ_NONE) { dev_dbg(&dev->dev, "PCI parallel port detected: I/O at %#lx(%#lx)\n", io_lo, io_hi); - irq = PARPORT_IRQ_NONE; } else { dev_dbg(&dev->dev, "PCI parallel port detected: I/O at %#lx(%#lx), IRQ %d\n", |