Skip to contentSkip to conversation

i810-tco bugfix

PATCH New [email protected] 1 participant 1 message Jun 25, 2001

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i810-tco bugfix

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.

Signature · 2 lines
Andrey Panin            | Embedded systems software engineer
[email protected]        | PGP key: http://www.orbita1.ru/~pazke/AndreyPanin.asc
linux/drivers/char/i810-tco.c renamed from linux.vanilla/drivers/char/i810-tco.c +2 -3
diff -ur -X /usr/dontdiff /linux.vanilla/drivers/char/i810-tco.c /linux/drivers/char/i810-tco.c
@@ -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)