diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-11-15 16:23:35 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-11-15 16:23:35 +0000 |
commit | e81a9e6ddbbcf435959b012f5595da0ed2389886 (patch) | |
tree | aa2643a45c77098fcb86874b7d751970cd00d379 /sys/dev/i2c/i2c.c | |
parent | c8c7014162f692ead770cea7fb5b67b92fd04f97 (diff) |
instead of passing OF nodes down to the drivers, pass name/compat string
pointers. This lets their match() functions actually make real decisions.
OF-capable machines will pass name/compat pointers, but other machines
will not. grudging ok kettenis
Diffstat (limited to 'sys/dev/i2c/i2c.c')
-rw-r--r-- | sys/dev/i2c/i2c.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/i2c/i2c.c b/sys/dev/i2c/i2c.c index 8cfd6c8cbba..76165044a74 100644 --- a/sys/dev/i2c/i2c.c +++ b/sys/dev/i2c/i2c.c @@ -1,4 +1,4 @@ -/* $OpenBSD: i2c.c,v 1.1 2004/05/23 17:33:43 grange Exp $ */ +/* $OpenBSD: i2c.c,v 1.2 2005/11/15 16:23:31 deraadt Exp $ */ /* $NetBSD: i2c.c,v 1.1 2003/09/30 00:35:31 thorpej Exp $ */ /* @@ -98,6 +98,8 @@ iic_search(struct device *parent, void *arg, void *aux) ia.ia_tag = sc->sc_tag; ia.ia_addr = cf->cf_loc[IICCF_ADDR]; ia.ia_size = cf->cf_loc[IICCF_SIZE]; + ia.ia_name = NULL; + ia.ia_compat = NULL; if (cf->cf_attach->ca_match(parent, cf, &ia) > 0) config_attach(parent, cf, &ia, iic_print); |