summaryrefslogtreecommitdiffstats
path: root/sys/pci/amdpm.c
diff options
context:
space:
mode:
authornsouch <nsouch@FreeBSD.org>2002-03-23 18:27:16 +0000
committernsouch <nsouch@FreeBSD.org>2002-03-23 18:27:16 +0000
commita5e2778a7049a4475ecad7970852a60d8e6f3be9 (patch)
tree1f316fa7f979f56054fc97fed787d9de808b7f20 /sys/pci/amdpm.c
parent2c31d393b38fc16cfbe123b98801d1b7261c6e2d (diff)
downloadFreeBSD-src-a5e2778a7049a4475ecad7970852a60d8e6f3be9.zip
FreeBSD-src-a5e2778a7049a4475ecad7970852a60d8e6f3be9.tar.gz
smbus_alloc_bus is not part of the smbus interface anymore
Diffstat (limited to 'sys/pci/amdpm.c')
-rw-r--r--sys/pci/amdpm.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/pci/amdpm.c b/sys/pci/amdpm.c
index cc4ff54..9664ce2 100644
--- a/sys/pci/amdpm.c
+++ b/sys/pci/amdpm.c
@@ -210,13 +210,15 @@ amdsmb_probe(device_t dev)
{
struct amdsmb_softc *amdsmb_sc = (struct amdsmb_softc *)device_get_softc(dev);
+ device_set_desc(dev, "AMD 756 SMBus interface");
+ device_printf(dev, "AMD 756 SMBus interface\n");
+
/* Allocate a new smbus device */
- amdsmb_sc->smbus = smbus_alloc_bus(dev);
+ amdsmb_sc->smbus = device_add_child(dev, "smbus", -1);
if (!amdsmb_sc->smbus)
return (EINVAL);
- device_set_desc(dev, "AMD 756 SMBus interface");
- device_printf(dev, "AMD 756 SMBus interface\n");
+ bus_generic_attach(dev);
return (0);
}
@@ -634,3 +636,5 @@ static driver_t amdsmb_driver = {
DRIVER_MODULE(amdpm, pci, amdpm_driver, amdpm_devclass, 0, 0);
DRIVER_MODULE(amdsmb, amdpm, amdsmb_driver, amdsmb_devclass, 0, 0);
+MODULE_DEPEND(amdpm, smbus, SMBUS_MINVER, SMBUS_PREFVER, SMBUS_MAXVER);
+MODULE_VERSION(amdpm, 1);
OpenPOWER on IntegriCloud