diff options
Diffstat (limited to 'sys/dev/sound/pci/cs4281.c')
-rw-r--r-- | sys/dev/sound/pci/cs4281.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/sound/pci/cs4281.c b/sys/dev/sound/pci/cs4281.c index 41eb810..2f5f633 100644 --- a/sys/dev/sound/pci/cs4281.c +++ b/sys/dev/sound/pci/cs4281.c @@ -769,6 +769,7 @@ cs4281_pci_attach(device_t dev) data = pci_read_config(dev, PCIR_COMMAND, 2); +#if __FreeBSD_version > 500000 if (pci_get_powerstate(dev) != PCI_POWERSTATE_D0) { /* Reset the power state. */ device_printf(dev, "chip is in D%d power mode " @@ -776,7 +777,7 @@ cs4281_pci_attach(device_t dev) pci_set_powerstate(dev, PCI_POWERSTATE_D0); } - +#endif sc->regid = PCIR_MAPS; sc->regtype = SYS_RES_MEMORY; sc->reg = bus_alloc_resource(dev, sc->regtype, &sc->regid, |