Skip to content

Commit 1e806c5

Browse files
kosakitorvalds
authored andcommitted
m32r: fix spin_lock_irqsave() misuse
spin_lock_irqsave() requires unsigned long. Signed-off-by: KOSAKI Motohiro <[email protected]> Cc: Hirokazu Takata <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 937e26c commit 1e806c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/tty/serial/m32r_sio.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,9 +907,10 @@ static int m32r_sio_request_port(struct uart_port *port)
907907
return ret;
908908
}
909909

910-
static void m32r_sio_config_port(struct uart_port *port, int flags)
910+
static void m32r_sio_config_port(struct uart_port *port, int unused)
911911
{
912912
struct uart_sio_port *up = (struct uart_sio_port *)port;
913+
unsigned long flags;
913914

914915
spin_lock_irqsave(&up->port.lock, flags);
915916

0 commit comments

Comments
 (0)