Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

serial: lpc32xx: Fix fallout from tty_port conversion

A duplicate definition of the port variable was introduced in the
interrupt handler, which causes the build to break. The fix is to
rename the variable to tport, which is already properly used in
subsequent code.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Thierry Reding and committed by
Greg Kroah-Hartman
33aeb9da 49abd90c

+1 -1
+1 -1
drivers/tty/serial/lpc32xx_hs.c
··· 322 322 static irqreturn_t serial_lpc32xx_interrupt(int irq, void *dev_id) 323 323 { 324 324 struct uart_port *port = dev_id; 325 - struct tty_port *port = &port->state->port; 325 + struct tty_port *tport = &port->state->port; 326 326 u32 status; 327 327 328 328 spin_lock(&port->lock);