diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-09-07 16:21:48 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-09-07 16:21:48 +0000 |
commit | 0909b33ee356b8b24e8cfd8ef9abfcce75eac449 (patch) | |
tree | 60b4dbc9eaed4dfda443b0bf3fa9ec06a75b03ad /sys/dev/pci/cs4281.c | |
parent | 06c96fb315950bff13bd7a73d355ebdc21e85191 (diff) |
remove the powerhook code. All architectures now use the ca_activate tree
traversal code to suspend/resume
ok oga kettenis blambert
Diffstat (limited to 'sys/dev/pci/cs4281.c')
-rw-r--r-- | sys/dev/pci/cs4281.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/sys/dev/pci/cs4281.c b/sys/dev/pci/cs4281.c index dad225ed926..d712edd1945 100644 --- a/sys/dev/pci/cs4281.c +++ b/sys/dev/pci/cs4281.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cs4281.c,v 1.24 2010/08/27 18:50:57 deraadt Exp $ */ +/* $OpenBSD: cs4281.c,v 1.25 2010/09/07 16:21:44 deraadt Exp $ */ /* $Tera: cs4281.c,v 1.18 2000/12/27 14:24:45 tacha Exp $ */ /* @@ -140,7 +140,6 @@ struct cs4281_softc { struct ac97_host_if host_if; /* Power Management */ - void *sc_powerhook; /* Power hook */ u_int16_t ac97_reg[CS4281_SAVE_REG_MAX + 1]; /* Save ac97 registers */ }; @@ -183,8 +182,6 @@ int cs4281_read_codec(void *, u_int8_t , u_int16_t *); int cs4281_write_codec(void *, u_int8_t, u_int16_t); void cs4281_reset_codec(void *); -void cs4281_powerhook(int, void *); - int cs4281_mixer_set_port(void *, mixer_ctrl_t *); int cs4281_mixer_get_port(void *, mixer_ctrl_t *); int cs4281_query_devinfo(void *, mixer_devinfo_t *); @@ -368,8 +365,6 @@ cs4281_attach(parent, self, aux) #if NMIDI > 0 midi_attach_mi(&cs4281_midi_hw_if, sc, &sc->sc_dev); #endif - - sc->sc_powerhook = powerhook_establish(cs4281_powerhook, sc); } @@ -1166,12 +1161,6 @@ cs4281_activate(struct device *self, int act) } void -cs4281_powerhook(int why, void *v) -{ - cs4281_activate(v, why); -} - -void cs4281_reset_codec(void *addr) { struct cs4281_softc *sc; |