From 82395b7295123f4d9a786ebd89495ef101103a61 Mon Sep 17 00:00:00 2001 From: nsouch Date: Sat, 23 Mar 2002 15:49:15 +0000 Subject: Major rework of the iicbus/smbus framework: - VIA chipset SMBus controllers added - alpm driver updated - Support for dynamic modules added - bktr FreeBSD smbus updated but not tested - cleanup --- sys/pci/intpm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/pci/intpm.c') diff --git a/sys/pci/intpm.c b/sys/pci/intpm.c index a3c780f..747f192 100644 --- a/sys/pci/intpm.c +++ b/sys/pci/intpm.c @@ -150,7 +150,7 @@ static int intsmb_probe(device_t dev) { struct intsmb_softc *sc =(struct intsmb_softc *) device_get_softc(dev); - sc->smbus=smbus_alloc_bus(dev); + sc->smbus=device_add_child(dev, "smbus", -1); if (!sc->smbus) return (EINVAL); /* XXX don't know what to return else */ device_set_desc(dev,"Intel PIIX4 SMBUS Interface"); @@ -739,6 +739,8 @@ intpm_probe(device_t dev) } } DRIVER_MODULE(intpm, pci , intpm_pci_driver, intpm_devclass, 0, 0); +MODULE_DEPEND(intpm, smbus, SMBUS_MINVER, SMBUS_PREFVER, SMBUS_MAXVER); +MODULE_VERSION(intpm, 1); static void intpm_intr(void *arg) { -- cgit v1.1