[PATCH] i810-tco bugfix

pazke@orbita1.ru
Mon, 25 Jun 2001 10:53:26 +0400


--Y7xTucakfITjPcLV
Content-Type: multipart/mixed; boundary="ibTvN161/egqYuK8"

--ibTvN161/egqYuK8
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

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.

--=20
Andrey Panin | Embedded systems software engineer
pazke@orbita1.ru | PGP key: http://www.orbita1.ru/~pazke/AndreyPanin=
.asc
--ibTvN161/egqYuK8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch-i810tco-bugfix
Content-Transfer-Encoding: quoted-printable

diff -ur -X /usr/dontdiff /linux.vanilla/drivers/char/i810-tco.c /linux/dri=
vers/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 @@
*/
=20
pci_for_each_dev(dev) {
- i810tco_pci =3D pci_match_device(i810tco_pci_tbl, dev);
- if (i810tco_pci !=3D NULL)
+ if (pci_match_device(i810tco_pci_tbl, dev))
break;
}
=20
- if (i810tco_pci) {
+ if ((i810tco_pci =3D dev)) {
/*
* Find the ACPI base I/O address which is the base
* for the TCO registers (TCOBASE=3DACPIBASE + 0x60)

--ibTvN161/egqYuK8--

--Y7xTucakfITjPcLV
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7Nt/mBm4rlNOo3YgRAiYfAJ9mSc84Ho7esLbxmWkgBznIcgtETQCghiq/
/cTs+g5PFtV8KX0+SruMqxY=
=C0cd
-----END PGP SIGNATURE-----

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