summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/dev/snapper.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/macppc/dev/snapper.c')
-rw-r--r--sys/arch/macppc/dev/snapper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/macppc/dev/snapper.c b/sys/arch/macppc/dev/snapper.c
index 8b7db3d3c02..1753dd1d942 100644
--- a/sys/arch/macppc/dev/snapper.c
+++ b/sys/arch/macppc/dev/snapper.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: snapper.c,v 1.5 2004/01/14 16:37:24 miod Exp $ */
+/* $OpenBSD: snapper.c,v 1.6 2004/12/25 19:01:01 miod Exp $ */
/* $NetBSD: snapper.c,v 1.1 2003/12/27 02:19:34 grant Exp $ */
/*-
@@ -385,7 +385,7 @@ snapper_defer(struct device *dev)
for (dv = alldevs.tqh_first; dv; dv=dv->dv_list.tqe_next)
if (strncmp(dv->dv_xname, "ki2c", 4) == 0 &&
- strncmp(dv->dv_parent->dv_xname, "macobio", 4) == 0)
+ strncmp(dv->dv_parent->dv_xname, "macobio", 7) == 0)
sc->sc_i2c = dv;
if (sc->sc_i2c == NULL) {
printf("%s: unable to find i2c\n", sc->sc_dev.dv_xname);