mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: <pazke@orbita1.ru>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] i810-tco bugfix
Date: Mon, 25 Jun 2001 10:53:26 +0400	[thread overview]
Message-ID: <20010625105326.A1792@orbita1.ru> (raw)


[-- 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 --]

                 reply	other threads:[~2001-06-25  6:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010625105326.A1792@orbita1.ru \
    --to=pazke@orbita1.ru \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®