When wakeirq is not used/enabled, "no wakeirq for uart0" is output for
all TTY as the log message is generated before the port line is
initialized.
[    0.802656] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.811700] omap_uart 
44e09000.serial: no wakeirq for uart0
[    0.812379] 
44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 88, base_baud = 
3000000) is a OMAP UART0
[    1.503622] console [ttyO0] enabled
[    1.509836] omap_uart 
48022000.serial: no wakeirq for uart0
[    1.516118] 
48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 89, base_baud = 
3000000) is a OMAP UART1
[    1.527711] omap_uart 
48024000.serial: no wakeirq for uart0
[    1.533881] 
48024000.serial: ttyO2 at MMIO 0x48024000 (irq = 90, base_baud = 
3000000) is a OMAP UART2
[    1.545324] omap_uart 
481a6000.serial: no wakeirq for uart0
[    1.551410] 
481a6000.serial: ttyO3 at MMIO 0x481a6000 (irq = 60, base_baud = 
3000000) is a OMAP UART3
[    1.562946] omap_uart 
481a8000.serial: no wakeirq for uart0
[    1.569036] 
481a8000.serial: ttyO4 at MMIO 0x481a8000 (irq = 61, base_baud = 
3000000) is a OMAP UART4
Fix by moving wakeirq initialization, check, and dev_info() call to
after port line initialization and validation.
Signed-off-by: Doug Kehn <rdkehn@yahoo.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 
        up->port.type = PORT_OMAP;
        up->port.iotype = UPIO_MEM;
        up->port.irq = uartirq;
-       up->wakeirq = wakeirq;
-       if (!up->wakeirq)
-               dev_info(up->port.dev, "no wakeirq for uart%d\n",
-                        up->port.line);
-
        up->port.regshift = 2;
        up->port.fifosize = 64;
        up->port.ops = &serial_omap_pops;
                goto err_port_line;
        }
 
+       up->wakeirq = wakeirq;
+       if (!up->wakeirq)
+               dev_info(up->port.dev, "no wakeirq for uart%d\n",
+                        up->port.line);
+
        ret = serial_omap_probe_rs485(up, pdev->dev.of_node);
        if (ret < 0)
                goto err_rs485;