Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 952773b5 authored by Phillip Raffeck's avatar Phillip Raffeck Committed by Greg Kroah-Hartman
Browse files

tty: serial: 8250: Remove SERIAL_DEBUG_PNP macro



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: default avatarPhillip Raffeck <phillip.raffeck@fau.de>
Signed-off-by: default avatarAnton Würfel <anton.wuerfel@fau.de>
Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: linux-kernel@i4.cs.fau.de
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9f59fbf0
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -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
	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);
#endif
		 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;