mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] i810-tco bugfix
@ 2001-06-25  6:53 pazke
  0 siblings, 0 replies; only message in thread
From: pazke @ 2001-06-25  6:53 UTC (permalink / raw)
  To: linux-kernel


[-- Attachment #1.1: Type: text/plain, Size: 309 bytes --]

Hi all,

this small patch fixes stupid bug in i810 TCO watchdog driver.
This bug was created by me (ugh) along with i815/i8[2456]0 support.

Best regards.

-- 
Andrey Panin            | Embedded systems software engineer
pazke@orbita1.ru        | PGP key: http://www.orbita1.ru/~pazke/AndreyPanin.asc

[-- Attachment #1.2: patch-i810tco-bugfix --]
[-- Type: text/plain, Size: 622 bytes --]

diff -ur -X /usr/dontdiff /linux.vanilla/drivers/char/i810-tco.c /linux/drivers/char/i810-tco.c
--- /linux.vanilla/drivers/char/i810-tco.c	Mon Jun 25 23:45:39 2001
+++ /linux/drivers/char/i810-tco.c	Tue Jun 26 00:19:14 2001
@@ -261,12 +261,11 @@
 	 */
 
 	pci_for_each_dev(dev) {
-		i810tco_pci = pci_match_device(i810tco_pci_tbl, dev);
-		if (i810tco_pci != NULL)
+		if (pci_match_device(i810tco_pci_tbl, dev))
 			break;
 	}
 
-	if (i810tco_pci) {
+	if ((i810tco_pci = dev)) {
 		/*
 		 *      Find the ACPI base I/O address which is the base
 		 *      for the TCO registers (TCOBASE=ACPIBASE + 0x60)

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-06-25  6:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-25  6:53 [PATCH] i810-tco bugfix pazke

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®