]> git.karo-electronics.de Git - linux-beck.git/commitdiff
tty: serial: 8250: Remove SERIAL_DEBUG_PNP macro
authorPhillip Raffeck <phillip.raffeck@fau.de>
Thu, 14 Jan 2016 15:08:20 +0000 (16:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Feb 2016 07:15:53 +0000 (23:15 -0800)
This patch removes the macro SERIAL_DEBUG_PNP, which is used to enable
debugging at compile time.
As SERIAL_DEBUG_PNP is an orphan, the corresponding #ifdef is removed.
To keep the ability to enable debugging at compile time,
the call to printk(KERN_DEBUG ...) is replaced by a corresponding
call to dev_dbg(), which is configurable via CONFIG_DYNAMIC_DEBUG.

Signed-off-by: Phillip Raffeck <phillip.raffeck@fau.de>
Signed-off-by: Anton Würfel <anton.wuerfel@fau.de>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: linux-kernel@i4.cs.fau.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_pnp.c

index 38000d6225c3bb118f05539f2a88e43633683bc0..cad40ff8d64136e75d2340eddd6a5e5f72b8d7c5 100644 (file)
@@ -464,11 +464,11 @@ serial_pnp_probe(struct pnp_dev *dev, const struct pnp_device_id *dev_id)
        } else
                return -ENODEV;
 
-#ifdef SERIAL_DEBUG_PNP
-       printk(KERN_DEBUG
-               "Setup PNP port: port %x, mem 0x%lx, irq %d, type %d\n",
-                      uart.port.iobase, uart.port.mapbase, uart.port.irq, uart.port.iotype);
-#endif
+       dev_dbg(&dev->dev,
+                "Setup PNP port: port %x, mem 0x%lx, irq %d, type %d\n",
+                uart.port.iobase, uart.port.mapbase,
+                uart.port.irq, uart.port.iotype);
+
        if (flags & CIR_PORT) {
                uart.port.flags |= UPF_FIXED_PORT | UPF_FIXED_TYPE;
                uart.port.type = PORT_8250_CIR;