OSDN Git Service

serial: sh-sci: Replace hardcoded 3 by UART_PM_STATE_OFF
authorGeert Uytterhoeven <geert+renesas@linux-m68k.org>
Tue, 11 Mar 2014 10:11:20 +0000 (11:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Mar 2014 23:20:49 +0000 (16:20 -0700)
Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
Acked-by: Simon Horman <horms@verge.net.au>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sh-sci.c

index 22a508a..634ecae 100644 (file)
@@ -1955,7 +1955,7 @@ static void sci_pm(struct uart_port *port, unsigned int state,
        struct sci_port *sci_port = to_sci_port(port);
 
        switch (state) {
-       case 3:
+       case UART_PM_STATE_OFF:
                sci_port_disable(sci_port);
                break;
        default: