diff options
| author | Nicolas Souchu <nsouch@FreeBSD.org> | 2002-03-23 18:27:16 +0000 |
|---|---|---|
| committer | Nicolas Souchu <nsouch@FreeBSD.org> | 2002-03-23 18:27:16 +0000 |
| commit | e1e245b7a5cbcc300e42dec810859a6e5e097ac7 (patch) | |
| tree | 1f316fa7f979f56054fc97fed787d9de808b7f20 /sys/pci/amdpm.c | |
| parent | 15164b99ccff392e694647cbd7a39756e5330aa0 (diff) | |
Notes
Diffstat (limited to 'sys/pci/amdpm.c')
| -rw-r--r-- | sys/pci/amdpm.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/pci/amdpm.c b/sys/pci/amdpm.c index cc4ff5440c43..9664ce2f0778 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); |
