xen: update tx_ready callback for ARM serial drivers
authorTomasz Wroblewski <tomasz.wroblewski@citrix.com>
Wed, 28 Aug 2013 11:36:18 +0000 (13:36 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 28 Aug 2013 11:50:00 +0000 (12:50 +0100)
Type of tx_ready callback got changed to int to facilitate error condition,
but the ARM serial drivers were not modified thus breaking the compilation.

Reported-by: Julien Grall <julien.grall@linaro.org>
Signed-off-by: Tomasz Wroblewski <tomasz.wroblewski@citrix.com>
xen/drivers/char/exynos4210-uart.c
xen/drivers/char/omap-uart.c
xen/drivers/char/pl011.c

index 9b34f92713422e242263c017bfc434d1b449963d..b297ed4a83d72937839e3db4d5ddcc6d39dd2ad1 100644 (file)
@@ -221,7 +221,7 @@ static void exynos4210_uart_resume(struct serial_port *port)
     BUG(); // XXX
 }
 
-static unsigned int exynos4210_uart_tx_ready(struct serial_port *port)
+static int exynos4210_uart_tx_ready(struct serial_port *port)
 {
     struct exynos4210_uart *uart = port->uart;
 
index 91391c86c81c0dcc6cc1f205f8175805fc70fb47..ffa71db92148ec4c2c487e522b204e83f9815aec 100644 (file)
@@ -226,7 +226,7 @@ static void omap_uart_resume(struct serial_port *port)
     BUG();
 }
 
-static unsigned int omap_uart_tx_ready(struct serial_port *port)
+static int omap_uart_tx_ready(struct serial_port *port)
 {
     struct omap_uart *uart = port->uart;
     uint32_t reg;
index 3ea0d41f8c822f2f9a4e267e3e10c9df57fd7679..3ec6e109d76744f353bb7862615d47d06dbd60b1 100644 (file)
@@ -155,7 +155,7 @@ static void pl011_resume(struct serial_port *port)
     BUG(); // XXX
 }
 
-static unsigned int pl011_tx_ready(struct serial_port *port)
+static int pl011_tx_ready(struct serial_port *port)
 {
     struct pl011 *uart = port->uart;