Revert "serial_core: Add wake_peer uart operation which is called before starting...
author黄涛 <huangtao@rock-chips.com>
Sat, 30 Jul 2011 14:41:09 +0000 (22:41 +0800)
committer黄涛 <huangtao@rock-chips.com>
Sat, 30 Jul 2011 14:41:09 +0000 (22:41 +0800)
This reverts commit f5353976c6a13732718b472ad308af1bb997f025.

drivers/serial/serial_core.c
include/linux/serial_core.h

index 47ad0cb20e42cfc5c9dea490cc37e58684691ebe..dcc72444e8e7015e904c70d726a83873dbeff21e 100644 (file)
@@ -94,9 +94,6 @@ static void __uart_start(struct tty_struct *tty)
        struct uart_state *state = tty->driver_data;
        struct uart_port *port = state->uart_port;
 
-       if (port->ops->wake_peer)
-               port->ops->wake_peer(port);
-
        if (!uart_circ_empty(&state->xmit) && state->xmit.buf &&
            !tty->stopped && !tty->hw_stopped)
                port->ops->start_tx(port);
index 8bdb2548ae3d43ad3a9bd6794391defebf1db3a4..e83a0ad06d32be0f492ef33ea437419861c4287d 100644 (file)
@@ -220,7 +220,6 @@ struct uart_ops {
        void            (*pm)(struct uart_port *, unsigned int state,
                              unsigned int oldstate);
        int             (*set_wake)(struct uart_port *, unsigned int state);
-       void            (*wake_peer)(struct uart_port *);
 
        /*
         * Return a string describing the type of the port