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/adm1025.c | |
parent | edcfcc685d091c58d00f492b26cc339914d76fb6 (diff) |
no longer use ia_compat; tested by a few
Diffstat (limited to 'sys/dev/i2c/adm1025.c')
-rw-r--r-- | sys/dev/i2c/adm1025.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/i2c/adm1025.c b/sys/dev/i2c/adm1025.c index a47695d9e9f..31cdd0307cc 100644 --- a/sys/dev/i2c/adm1025.c +++ b/sys/dev/i2c/adm1025.c @@ -1,4 +1,4 @@ -/* $OpenBSD: adm1025.c,v 1.12 2005/12/24 19:46:33 deraadt Exp $ */ +/* $OpenBSD: adm1025.c,v 1.13 2005/12/27 17:18:18 deraadt Exp $ */ /* * Copyright (c) 2005 Theo de Raadt @@ -100,19 +100,21 @@ admtm_attach(struct device *parent, struct device *self, void *aux) sc->sc_tag = ia->ia_tag; sc->sc_addr = ia->ia_addr; + printf(": %s", ia->ia_name); + iic_acquire_bus(sc->sc_tag, 0); cmd = ADM1025_CONFIG; if (iic_exec(sc->sc_tag, I2C_OP_READ_WITH_STOP, sc->sc_addr, &cmd, sizeof cmd, &data, sizeof data, I2C_F_POLL)) { iic_release_bus(sc->sc_tag, 0); - printf(": cannot get control register\n"); + printf(", cannot get control register\n"); return; } data |= 0x01; if (iic_exec(sc->sc_tag, I2C_OP_WRITE_WITH_STOP, sc->sc_addr, &cmd, sizeof cmd, &data, sizeof data, I2C_F_POLL)) { iic_release_bus(sc->sc_tag, 0); - printf(": cannot set control register\n"); + printf(", cannot set control register\n"); return; } iic_release_bus(sc->sc_tag, 0); |