diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-12-27 17:18:19 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-12-27 17:18:19 +0000 |
commit | 4bbbc10fd4639be17d042362a32260e0b6cd7a26 (patch) | |
tree | daaebfd5f6056252febe2e08acad368ae4068b7a /sys/dev/i2c/adm1030.c | |
parent | edcfcc685d091c58d00f492b26cc339914d76fb6 (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.c | 11 |
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 |