[PATCH] PC Watchdog card driver (small bug)

Sergey Dmitriev (dmit@sfgate.com)
Wed, 11 Aug 1999 21:53:10 -0700 (PDT)


Quick fix for pcwd.c driver. GETSTATUS doesn't work with Rev. C.

--- linux/drivers/char/pcwd.c.orig Mon Aug 24 13:14:10 1998
+++ linux/drivers/char/pcwd.c Wed Jun 9 10:19:48 1999
@@ -243,7 +243,10 @@
return i ? -EFAULT : 0;

case WDIOC_GETSTATUS:
+ if (revision == PCWD_REVISION_A)
cdat = inb(current_readport);
+ else
+ cdat = inb(current_readport + 1 );
rv = 0;

if (revision == PCWD_REVISION_A)

---------------------------------------------------------------------------
Sergey Dmitriev /|\/|\
System Administrator ~I~~I~
SF Gate - http://www.sfgate.com
(415) 447 6310 1001 Van Ness Ave.
dmit@sfgate.com San Francisco, CA 94109
---------------------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/