Skip to content

Commit

Permalink
m32r: fix spin_lock_irqsave() misuse
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
kosaki authored and torvalds committed May 27, 2011
1 parent 937e26c commit 1e806c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/tty/serial/m32r_sio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 1e806c5

Please sign in to comment.