summaryrefslogtreecommitdiff
path: root/sys/dev/pci/alipm.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-01-01 20:52:29 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-01-01 20:52:29 +0000
commit5c6a275d22890d00126f51fb7cbff1aa01948aca (patch)
tree7b1673167ce83d637e54ce54d8bd795cdcd691f6 /sys/dev/pci/alipm.c
parent2e8171134016d44dbd15da591feea9b72aae4eca (diff)
switch from macppc-specific maciic(4) driver to the generic iic(4),
after teaching it to use a function pointer to get back to the OFW scan.. this will also help the sparc64 later; ok kettenis
Diffstat (limited to 'sys/dev/pci/alipm.c')
-rw-r--r--sys/dev/pci/alipm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pci/alipm.c b/sys/dev/pci/alipm.c
index dc0ba3885a5..4c7588a3156 100644
--- a/sys/dev/pci/alipm.c
+++ b/sys/dev/pci/alipm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: alipm.c,v 1.3 2005/12/27 20:42:38 kettenis Exp $ */
+/* $OpenBSD: alipm.c,v 1.4 2006/01/01 20:52:26 deraadt Exp $ */
/*
* Copyright (c) 2005 Mark Kettenis
@@ -211,9 +211,10 @@ alipm_attach(struct device *parent, struct device *self, void *aux)
sc->sc_smb_tag.ic_acquire_bus = alipm_smb_acquire_bus;
sc->sc_smb_tag.ic_release_bus = alipm_smb_release_bus;
sc->sc_smb_tag.ic_exec = alipm_smb_exec;
+
+ bzero(&iba, sizeof iba);
iba.iba_name = "iic";
iba.iba_tag = &sc->sc_smb_tag;
- iba.iba_scan = 1;
config_found(&sc->sc_dev, &iba, iicbus_print);
}