lkml.org 
[lkml]   [1999]   [Aug]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] PC Watchdog card driver (small bug)

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/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:1.338 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site