summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev/pcfiic_ebus.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2006-02-09 12:16:26 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2006-02-09 12:16:26 +0000
commitf8c2856bb78241a536c87558439b57026cd1282b (patch)
tree81fbdb65285bff6946479712aa7dffcc31b36013 /sys/arch/sparc64/dev/pcfiic_ebus.c
parent66bad04c46e1a46b46f341f03faea546fca692be (diff)
split the ofw scan up into two parts: one to find the i2c bus on a pci
device, and one to find i2c devices on the i2c bus. tweaks and ok kettenis@ ok djm@
Diffstat (limited to 'sys/arch/sparc64/dev/pcfiic_ebus.c')
-rw-r--r--sys/arch/sparc64/dev/pcfiic_ebus.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/arch/sparc64/dev/pcfiic_ebus.c b/sys/arch/sparc64/dev/pcfiic_ebus.c
index 64ec5be510b..126ac46a9bc 100644
--- a/sys/arch/sparc64/dev/pcfiic_ebus.c
+++ b/sys/arch/sparc64/dev/pcfiic_ebus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcfiic_ebus.c,v 1.2 2006/02/01 11:08:22 dlg Exp $ */
+/* $OpenBSD: pcfiic_ebus.c,v 1.3 2006/02/09 12:16:25 dlg Exp $ */
/*
* Copyright (c) 2006 David Gwynne <dlg@openbsd.org>
@@ -110,9 +110,6 @@ pcfiic_ebus_attach(struct device *parent, struct device *self, void *aux)
if (esc->esc_ih == NULL)
sc->sc_poll = 1;
- pcfiic_attach(sc, (i2c_addr_t)(addr >> 1), NULL, NULL);
-#ifdef notyet
- pcfiic_attach(sc, (i2c_addr_t)(addr >> 1), ofwi2c_scan, &ea->ea_node);
-#endif
+ pcfiic_attach(sc, (i2c_addr_t)(addr >> 1), ofwiic_scan, &ea->ea_node);
/* the rest of the attach line is printed by pcfiic_attach() */
}