From 0909b33ee356b8b24e8cfd8ef9abfcce75eac449 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 7 Sep 2010 16:21:48 +0000 Subject: remove the powerhook code. All architectures now use the ca_activate tree traversal code to suspend/resume ok oga kettenis blambert --- sys/dev/pci/cs4281.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'sys/dev/pci/cs4281.c') 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); } @@ -1165,12 +1160,6 @@ cs4281_activate(struct device *self, int act) return 0; } -void -cs4281_powerhook(int why, void *v) -{ - cs4281_activate(v, why); -} - void cs4281_reset_codec(void *addr) { -- cgit v1.2.3