Commit 340a59bf authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] QD65xx I/O ports fix

From: Geert Uytterhoeven <geert@linux-m68k.org>

I/O port numbers can be larger than 8-bit on many platforms (this caused a
warning when {out,in}b() cast reg to a pointer on platforms with memory
mapped I/O)
parent 832c2852
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
static int timings[4]={-1,-1,-1,-1}; /* stores current timing for each timer */ static int timings[4]={-1,-1,-1,-1}; /* stores current timing for each timer */
static void qd_write_reg (u8 content, u8 reg) static void qd_write_reg (u8 content, unsigned long reg)
{ {
unsigned long flags; unsigned long flags;
...@@ -101,7 +101,7 @@ static void qd_write_reg (u8 content, u8 reg) ...@@ -101,7 +101,7 @@ static void qd_write_reg (u8 content, u8 reg)
spin_unlock_irqrestore(&ide_lock, flags); spin_unlock_irqrestore(&ide_lock, flags);
} }
u8 __init qd_read_reg (u8 reg) u8 __init qd_read_reg (unsigned long reg)
{ {
unsigned long flags; unsigned long flags;
u8 read; u8 read;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment