Messages in this thread Patch in this message | | | Date | Wed, 5 Aug 2009 15:23:48 +0200 (CEST) | From | Julia Lawall <> | Subject | [PATCH 2/4] drivers/serial/atmel_serial.c: Use UPIO_MEM rather than SERIAL_IO_MEM |
| |
From: Julia Lawall <julia@diku.dk>
As in the commit 9b4a1617772d6d5ab5eeda0cd95302fae119e359, use UPIO_MEM rather than SERIAL_IO_MEM. Both have the same value.
The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/)
// <smpl> @has_sc@ @@
#include <linux/serial_core.h>
@depends on has_sc@ @@
- SERIAL_IO_MEM + UPIO_MEM // </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
--- drivers/serial/atmel_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff -u -p a/drivers/serial/atmel_serial.c b/drivers/serial/atmel_serial.c --- a/drivers/serial/atmel_serial.c +++ b/drivers/serial/atmel_serial.c @@ -1200,7 +1200,7 @@ static int atmel_verify_port(struct uart ret = -EINVAL; if (port->irq != ser->irq) ret = -EINVAL; - if (ser->io_type != SERIAL_IO_MEM) + if (ser->io_type != UPIO_MEM) ret = -EINVAL; if (port->uartclk / 16 != ser->baud_base) ret = -EINVAL;
| |