diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2018-02-07 14:47:55 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-14 12:54:09 -0400 |
commit | 82dfabf1c4d5f76d2ed854ae30e4af7f7291bf0c (patch) | |
tree | 03f3e0f2148cbed0f592163644386c824ddddf0b /drivers/parport | |
parent | 96edf5376e9250eb61d2bbc5432c13846878edb2 (diff) |
parport: Convert printk(KERN_WARN) to dev_warn()
dev_warn() will print device name with associated driver,
no need to keep this open coded.
While here, adjust indentation in the rest of dev_dbg() calls.
Tested-by: Nikola Ciprich <nikola.ciprich@linuxbox.cz>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/parport')
-rw-r--r-- | drivers/parport/parport_serial.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/parport/parport_serial.c b/drivers/parport/parport_serial.c index c222698410c2..c56bb06b82d0 100644 --- a/drivers/parport/parport_serial.c +++ b/drivers/parport/parport_serial.c | |||
@@ -571,10 +571,9 @@ static int parport_register(struct pci_dev *dev, const struct pci_device_id *id) | |||
571 | int irq; | 571 | int irq; |
572 | 572 | ||
573 | if (priv->num_par == ARRAY_SIZE (priv->port)) { | 573 | if (priv->num_par == ARRAY_SIZE (priv->port)) { |
574 | printk (KERN_WARNING | 574 | dev_warn(&dev->dev, |
575 | "parport_serial: %s: only %zu parallel ports " | 575 | "only %zu parallel ports supported (%d reported)\n", |
576 | "supported (%d reported)\n", pci_name (dev), | 576 | ARRAY_SIZE(priv->port), card->numports); |
577 | ARRAY_SIZE(priv->port), card->numports); | ||
578 | break; | 577 | break; |
579 | } | 578 | } |
580 | 579 | ||
@@ -590,12 +589,12 @@ static int parport_register(struct pci_dev *dev, const struct pci_device_id *id) | |||
590 | irq = dev->irq; | 589 | irq = dev->irq; |
591 | if (irq == IRQ_NONE) { | 590 | if (irq == IRQ_NONE) { |
592 | dev_dbg(&dev->dev, | 591 | dev_dbg(&dev->dev, |
593 | "PCI parallel port detected: I/O at %#lx(%#lx)\n", | 592 | "PCI parallel port detected: I/O at %#lx(%#lx)\n", |
594 | io_lo, io_hi); | 593 | io_lo, io_hi); |
595 | irq = PARPORT_IRQ_NONE; | 594 | irq = PARPORT_IRQ_NONE; |
596 | } else { | 595 | } else { |
597 | dev_dbg(&dev->dev, | 596 | dev_dbg(&dev->dev, |
598 | "PCI parallel port detected: I/O at %#lx(%#lx), IRQ %d\n", | 597 | "PCI parallel port detected: I/O at %#lx(%#lx), IRQ %d\n", |
599 | io_lo, io_hi, irq); | 598 | io_lo, io_hi, irq); |
600 | } | 599 | } |
601 | port = parport_pc_probe_port (io_lo, io_hi, irq, | 600 | port = parport_pc_probe_port (io_lo, io_hi, irq, |