Messages in this thread Patch in this message | | | Date | Tue, 6 Apr 2004 13:31:55 +0200 (MEST) | From | Geert Uytterhoeven <> | Subject | [PATCH] QD65xx I/O ports |
| |
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)
--- linux-2.6.5/drivers/ide/legacy/qd65xx.c.orig 2003-10-09 10:02:47.000000000 +0200 +++ linux-2.6.5/drivers/ide/legacy/qd65xx.c 2004-04-01 13:31:54.000000000 +0200 @@ -92,7 +92,7 @@
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;
@@ -101,7 +101,7 @@ spin_unlock_irqrestore(&ide_lock, flags); }
-u8 __init qd_read_reg (u8 reg) +u8 __init qd_read_reg (unsigned long reg) { unsigned long flags; u8 read; Gr{oetje,eeting}s, Geert
-- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |