OMAP: UART: fix the return type of check_modem_status
authorShubhrajyoti D <shubhrajyoti@ti.com>
Mon, 21 Nov 2011 10:13:28 +0000 (15:43 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Nov 2011 04:10:13 +0000 (20:10 -0800)
The function check_modem_status returns an int currently it
is stored in a char.

Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/serial/omap-serial.c

index 5e713d3ef1f47c49eaa93f8d4ced09ce87b89c1e..f2a1380ed678b007f4690ac1d6f7d10e202aca37 100644 (file)
@@ -399,7 +399,7 @@ static unsigned int serial_omap_tx_empty(struct uart_port *port)
 static unsigned int serial_omap_get_mctrl(struct uart_port *port)
 {
        struct uart_omap_port *up = (struct uart_omap_port *)port;
-       unsigned char status;
+       unsigned int status;
        unsigned int ret = 0;
 
        status = check_modem_status(up);