diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2006-01-12 22:45:47 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2006-01-12 22:45:47 +0000 |
commit | a7cfbb247acfb0934e64ffce27b6d4e197519964 (patch) | |
tree | 79378697d52f470a1ced68456b7462fd65710fb9 /sys/dev/ic | |
parent | ef75a7aa2c77cdd2981e76dbb59ff01667a6048c (diff) |
Garbage collect lm_probe.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/nslm7x.c | 30 | ||||
-rw-r--r-- | sys/dev/ic/nslm7xvar.h | 3 |
2 files changed, 2 insertions, 31 deletions
diff --git a/sys/dev/ic/nslm7x.c b/sys/dev/ic/nslm7x.c index 989c7c3ddec..30ca6c2360d 100644 --- a/sys/dev/ic/nslm7x.c +++ b/sys/dev/ic/nslm7x.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nslm7x.c,v 1.17 2006/01/12 22:31:11 kettenis Exp $ */ +/* $OpenBSD: nslm7x.c,v 1.18 2006/01/12 22:45:46 kettenis Exp $ */ /* $NetBSD: nslm7x.c,v 1.17 2002/11/15 14:55:41 ad Exp $ */ /*- @@ -327,34 +327,6 @@ struct lm_sensor as99127f_sensors[] = { { NULL } }; -/* XXX Not so bus-independent probe. */ -int -lm_probe(bus_space_tag_t iot, bus_space_handle_t ioh) -{ - u_int8_t cr; - int rv; - - /* Check for some power-on defaults */ - bus_space_write_1(iot, ioh, LMC_ADDR, LMD_CONFIG); - - /* Perform LM78 reset */ - bus_space_write_1(iot, ioh, LMC_DATA, 0x80); - - /* XXX - Why do I have to reselect the register? */ - bus_space_write_1(iot, ioh, LMC_ADDR, LMD_CONFIG); - cr = bus_space_read_1(iot, ioh, LMC_DATA); - - /* XXX - spec says *only* 0x08! */ - if ((cr == 0x08) || (cr == 0x01) || (cr == 0x03)) - rv = 1; - else - rv = 0; - - DPRINTF(("lm: rv = %d, cr = %x\n", rv, cr)); - - return (rv); -} - void lm_attach(struct lm_softc *sc) { diff --git a/sys/dev/ic/nslm7xvar.h b/sys/dev/ic/nslm7xvar.h index 7e837208de5..92311d614f3 100644 --- a/sys/dev/ic/nslm7xvar.h +++ b/sys/dev/ic/nslm7xvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: nslm7xvar.h,v 1.10 2006/01/12 22:31:11 kettenis Exp $ */ +/* $OpenBSD: nslm7xvar.h,v 1.11 2006/01/12 22:45:46 kettenis Exp $ */ /* $NetBSD: nslm7xvar.h,v 1.10 2002/11/15 14:55:42 ad Exp $ */ /*- @@ -163,6 +163,5 @@ struct lm_softc { }; void lm_attach(struct lm_softc *); -int lm_probe(bus_space_tag_t, bus_space_handle_t); #endif /* _DEV_ISA_NSLM7XVAR_H_ */ |