diff options
| author | 2006-11-28 16:17:57 +0000 | |
|---|---|---|
| committer | 2006-11-28 16:17:57 +0000 | |
| commit | cc979f14ad1b6d18e0a6714bfc39aa6d2205d366 (patch) | |
| tree | e837ffb7bf4aa82aa71ff611408b08ff50f183de /sys/dev/pci/amdpm.c | |
| parent | The default debug level is ``error'' for now. (diff) | |
| download | wireguard-openbsd-cc979f14ad1b6d18e0a6714bfc39aa6d2205d366.tar.xz wireguard-openbsd-cc979f14ad1b6d18e0a6714bfc39aa6d2205d366.zip | |
acpi may steal power management functionality, in which case we
cannot io map the device. Bail out without warning. If we want
to retain the rgn we could re-enable io and be very very careful.
ok deraadt@
Diffstat (limited to 'sys/dev/pci/amdpm.c')
| -rw-r--r-- | sys/dev/pci/amdpm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/amdpm.c b/sys/dev/pci/amdpm.c index 0cd5a8b70c9..3311ae4812d 100644 --- a/sys/dev/pci/amdpm.c +++ b/sys/dev/pci/amdpm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: amdpm.c,v 1.18 2006/09/28 18:19:14 grange Exp $ */ +/* $OpenBSD: amdpm.c,v 1.19 2006/11/28 16:17:57 kettenis Exp $ */ /* * Copyright (c) 2006 Alexander Yurchenko <grange@openbsd.org> @@ -241,9 +241,9 @@ amdpm_attach(struct device *parent, struct device *self, void *aux) } reg = pci_conf_read(pa->pa_pc, pa->pa_tag, AMDPM_PMPTR); - if (bus_space_map(sc->sc_iot, AMDPM_PMBASE(reg), AMDPM_PMSIZE, 0, - &sc->sc_ioh)) { - printf(": failed to map PMxx space\n"); + if (bus_space_map(sc->sc_iot, AMDPM_PMBASE(reg), AMDPM_PMSIZE, + 0, &sc->sc_ioh)) { + printf("\n"); return; } if (bus_space_subregion(sc->sc_iot, sc->sc_ioh, AMDPM_SMB_REGS, |
