summaryrefslogtreecommitdiff
path: root/sys/dev/i2c/adm1030.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-12-27 17:18:19 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-12-27 17:18:19 +0000
commit4bbbc10fd4639be17d042362a32260e0b6cd7a26 (patch)
treedaaebfd5f6056252febe2e08acad368ae4068b7a /sys/dev/i2c/adm1030.c
parentedcfcc685d091c58d00f492b26cc339914d76fb6 (diff)
no longer use ia_compat; tested by a few
Diffstat (limited to 'sys/dev/i2c/adm1030.c')
-rw-r--r--sys/dev/i2c/adm1030.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/dev/i2c/adm1030.c b/sys/dev/i2c/adm1030.c
index c2991a0cf8c..593fbae3c67 100644
--- a/sys/dev/i2c/adm1030.c
+++ b/sys/dev/i2c/adm1030.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: adm1030.c,v 1.2 2005/12/22 22:56:48 deraadt Exp $ */
+/* $OpenBSD: adm1030.c,v 1.3 2005/12/27 17:18:18 deraadt Exp $ */
/*
* Copyright (c) 2005 Theo de Raadt
@@ -62,12 +62,9 @@ admtmp_match(struct device *parent, void *match, void *aux)
{
struct i2c_attach_args *ia = aux;
- if (ia->ia_compat) {
- if (strcmp(ia->ia_compat, "adm1030") == 0)
- return (1);
- return (0);
- }
- return (1);
+ if (strcmp(ia->ia_name, "adm1030") == 0)
+ return (1);
+ return (0);
}
void