aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/8250/8250_fsl.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2014-07-14 14:26:14 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-17 18:16:23 -0700
commitb1261c86fe238cc0da3f5dc837a38a0c39f3e7c4 (patch)
tree4a62c30754e5aca7cf5c665efeabf545b69d52da /drivers/tty/serial/8250/8250_fsl.c
parenttty: serial: fsl_lpuart: add 32-bit register interface support (diff)
downloadlinux-stable-b1261c86fe238cc0da3f5dc837a38a0c39f3e7c4.tar.xz
linux-stable-b1261c86fe238cc0da3f5dc837a38a0c39f3e7c4.zip
serial: 8250: introduce up_to_u8250p() helper
It helps to cast struct uart_port to struct uart_8250_port at runtime. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/8250/8250_fsl.c')
-rw-r--r--drivers/tty/serial/8250/8250_fsl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/tty/serial/8250/8250_fsl.c b/drivers/tty/serial/8250/8250_fsl.c
index f4d3c47b88e8..c0533a57ec53 100644
--- a/drivers/tty/serial/8250/8250_fsl.c
+++ b/drivers/tty/serial/8250/8250_fsl.c
@@ -28,8 +28,7 @@ int fsl8250_handle_irq(struct uart_port *port)
unsigned char lsr, orig_lsr;
unsigned long flags;
unsigned int iir;
- struct uart_8250_port *up =
- container_of(port, struct uart_8250_port, port);
+ struct uart_8250_port *up = up_to_u8250p(port);
spin_lock_irqsave(&up->port.lock, flags);