mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] QD65xx I/O ports
@ 2004-04-06 11:31 Geert Uytterhoeven
  2004-04-08 22:50 ` Bartlomiej Zolnierkiewicz
  0 siblings, 1 reply; 5+ messages in thread
From: Geert Uytterhoeven @ 2004-04-06 11:31 UTC (permalink / raw)
  To: Andrew Morton, Bartlomiej Zolnierkiewicz
  Cc: Linux Kernel Development, linux-ide


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-04-14  1:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-06 11:31 [PATCH] QD65xx I/O ports Geert Uytterhoeven
2004-04-08 22:50 ` Bartlomiej Zolnierkiewicz
2004-04-13 13:47   ` Erik Mouw
2004-04-14  1:40     ` Cef (LKML)
2004-04-14  1:52       ` Bartlomiej Zolnierkiewicz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®