From: KOSAKI Motohiro Date: Thu, 26 May 2011 23:25:00 +0000 (-0700) Subject: m32r: fix spin_lock_irqsave() misuse X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1e806c50f4f36bb3aa9f6e43d9e4beb08a2d39d8;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git m32r: fix spin_lock_irqsave() misuse spin_lock_irqsave() requires unsigned long. Signed-off-by: KOSAKI Motohiro Cc: Hirokazu Takata Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/tty/serial/m32r_sio.c b/drivers/tty/serial/m32r_sio.c index bea5c215460c..84db7321cce8 100644 --- a/drivers/tty/serial/m32r_sio.c +++ b/drivers/tty/serial/m32r_sio.c @@ -907,9 +907,10 @@ static int m32r_sio_request_port(struct uart_port *port) return ret; } -static void m32r_sio_config_port(struct uart_port *port, int flags) +static void m32r_sio_config_port(struct uart_port *port, int unused) { struct uart_sio_port *up = (struct uart_sio_port *)port; + unsigned long flags; spin_lock_irqsave(&up->port.lock, flags);