diff options
Diffstat (limited to 'drivers/tty/serial/8250')
-rw-r--r-- | drivers/tty/serial/8250/8250.c | 5 | ||||
-rw-r--r-- | drivers/tty/serial/8250/8250.h | 10 |
2 files changed, 10 insertions, 5 deletions
diff --git a/drivers/tty/serial/8250/8250.c b/drivers/tty/serial/8250/8250.c index 9674eac5535..4009e2438e4 100644 --- a/drivers/tty/serial/8250/8250.c +++ b/drivers/tty/serial/8250/8250.c | |||
@@ -482,11 +482,6 @@ serial_out_sync(struct uart_8250_port *up, int offset, int value) | |||
482 | } | 482 | } |
483 | } | 483 | } |
484 | 484 | ||
485 | #define serial_in(up, offset) \ | ||
486 | (up->port.serial_in(&(up)->port, (offset))) | ||
487 | #define serial_out(up, offset, value) \ | ||
488 | (up->port.serial_out(&(up)->port, (offset), (value))) | ||
489 | |||
490 | /* Uart divisor latch read */ | 485 | /* Uart divisor latch read */ |
491 | static inline int _serial_dl_read(struct uart_8250_port *up) | 486 | static inline int _serial_dl_read(struct uart_8250_port *up) |
492 | { | 487 | { |
diff --git a/drivers/tty/serial/8250/8250.h b/drivers/tty/serial/8250/8250.h index ae027be57e2..2868a1da254 100644 --- a/drivers/tty/serial/8250/8250.h +++ b/drivers/tty/serial/8250/8250.h | |||
@@ -86,6 +86,16 @@ struct serial8250_config { | |||
86 | #define SERIAL8250_SHARE_IRQS 0 | 86 | #define SERIAL8250_SHARE_IRQS 0 |
87 | #endif | 87 | #endif |
88 | 88 | ||
89 | static inline int serial_in(struct uart_8250_port *up, int offset) | ||
90 | { | ||
91 | return up->port.serial_in(&up->port, offset); | ||
92 | } | ||
93 | |||
94 | static inline void serial_out(struct uart_8250_port *up, int offset, int value) | ||
95 | { | ||
96 | up->port.serial_out(&up->port, offset, value); | ||
97 | } | ||
98 | |||
89 | #if defined(__alpha__) && !defined(CONFIG_PCI) | 99 | #if defined(__alpha__) && !defined(CONFIG_PCI) |
90 | /* | 100 | /* |
91 | * Digital did something really horribly wrong with the OUT1 and OUT2 | 101 | * Digital did something really horribly wrong with the OUT1 and OUT2 |