Skip to content

Commit

Permalink
TTY: 68328serial, use ulong flags for interrupts status
Browse files Browse the repository at this point in the history
flags passed to local_irq_save/restore should be ulong. Switch tehem
to that. Otherwise we get compilation warnings:
.../68328serial.c:248:9: warning: comparison of distinct pointer types lacks a cast [enabled by default]
.../68328serial.c:257:9: warning: comparison of distinct pointer types lacks a cast [enabled by default]

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: linux-m68k@lists.linux-m68k.org
Acked-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Jiri Slaby authored and Greg Kroah-Hartman committed Apr 9, 2012
1 parent b8aa50f commit 107afb7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/tty/serial/68328serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ static void rs_stop(struct tty_struct *tty)

static int rs_put_char(char ch)
{
int flags, loops = 0;
unsigned long flags;
int loops = 0;

local_irq_save(flags);

Expand Down Expand Up @@ -1182,7 +1183,8 @@ static const struct tty_operations rs_ops = {
static int __init
rs68328_init(void)
{
int flags, i;
unsigned long flags;
int i;
struct m68k_serial *info;

serial_driver = alloc_tty_driver(NR_PORTS);
Expand Down

0 comments on commit 107afb7

Please sign in to comment.