diff options
-rw-r--r-- | sys/dev/i2c/rs5c372.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/i2c/rs5c372.c b/sys/dev/i2c/rs5c372.c index 04eb2942469..5f5c67d6de2 100644 --- a/sys/dev/i2c/rs5c372.c +++ b/sys/dev/i2c/rs5c372.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rs5c372.c,v 1.4 2008/04/17 16:50:17 deraadt Exp $ */ +/* $OpenBSD: rs5c372.c,v 1.5 2009/10/05 18:59:36 deraadt Exp $ */ /* $NetBSD: rs5c372.c,v 1.5 2006/03/29 06:41:24 thorpej Exp $ */ /* @@ -136,6 +136,7 @@ ricohrtc_match(struct device *parent, void *v, void *arg) return (0); } if ((data & ~RICOHRTC_SECONDS_MASK) != 0) { + iic_release_bus(ia->ia_tag, I2C_F_POLL); printf("ricohrtc second %d\n",data); return (0); } @@ -149,6 +150,7 @@ ricohrtc_match(struct device *parent, void *v, void *arg) } if ((data & ~RICOHRTC_MINUTES_MASK) != 0) { + iic_release_bus(ia->ia_tag, I2C_F_POLL); printf("ricohrtc minute %d\n",data); return (0); } @@ -161,12 +163,13 @@ ricohrtc_match(struct device *parent, void *v, void *arg) return (0); } if ((data & ~RICOHRTC_HOURS_24MASK) != 0) { + iic_release_bus(ia->ia_tag, I2C_F_POLL); printf("ricohrtc hour %d\n",data); return (0); } -#endif - iic_release_bus(ia->ia_tag, I2C_F_POLL); + +#endif return (1); } |