summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2011-01-03 15:28:47 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2011-01-03 15:28:47 +0000
commitc4c7732f169da2c3d0bd0ff71c1b36a8711e6ff6 (patch)
tree7a155c488e9132d8c55684e79045ac2454199b48
parentdcb430e3546298eae3e1a929abcd446f1e7a03c9 (diff)
use host_flags directly as they're initialized during attach time.
jakemsr@ ok.
-rw-r--r--sys/dev/ic/ac97.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/ic/ac97.c b/sys/dev/ic/ac97.c
index 98240025216..a3f81f9144c 100644
--- a/sys/dev/ic/ac97.c
+++ b/sys/dev/ic/ac97.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ac97.c,v 1.76 2011/01/03 10:00:22 jakemsr Exp $ */
+/* $OpenBSD: ac97.c,v 1.77 2011/01/03 15:28:46 fgsch Exp $ */
/*
* Copyright (c) 1999, 2000 Constantine Sapuntzakis
@@ -1516,8 +1516,7 @@ ac97_vt1616_init(struct ac97_softc *as, int resuming)
{
u_int16_t reg;
- if (as->host_if->flags &&
- (as->host_if->flags(as->host_if->arg) & AC97_HOST_VT1616_DYNEX)) {
+ if (as->host_flags & AC97_HOST_VT1616_DYNEX) {
ac97_read(as, AC97_VT_REG_TEST, &reg);
/* disable 'hp' mixer controls controlling the surround pins */