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/esa.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/esa.c')
-rw-r--r-- | sys/dev/pci/esa.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/sys/dev/pci/esa.c b/sys/dev/pci/esa.c index eb33bda86fb..156a8bee9da 100644 --- a/sys/dev/pci/esa.c +++ b/sys/dev/pci/esa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: esa.c,v 1.21 2010/08/27 18:50:57 deraadt Exp $ */ +/* $OpenBSD: esa.c,v 1.22 2010/09/07 16:21:44 deraadt Exp $ */ /* $NetBSD: esa.c,v 1.12 2002/03/24 14:17:35 jmcneill Exp $ */ /* @@ -161,7 +161,6 @@ int esa_add_list(struct esa_voice *, struct esa_list *, u_int16_t, void esa_remove_list(struct esa_voice *, struct esa_list *, int); /* power management */ -void esa_powerhook(int, void *); int esa_suspend(struct esa_softc *); int esa_resume(struct esa_softc *); @@ -1145,13 +1144,6 @@ esa_attach(struct device *parent, struct device *self, void *aux) sc->sc_audiodev[i] = audio_attach_mi(&esa_hw_if, &sc->voice[i], &sc->sc_dev); } - - sc->powerhook = powerhook_establish(esa_powerhook, sc); - if (sc->powerhook == NULL) - printf("%s: WARNING: unable to establish powerhook\n", - sc->sc_dev.dv_xname); - - return; } int @@ -1622,12 +1614,6 @@ esa_activate(struct device *self, int act) return 0; } -void -esa_powerhook(int why, void *hdl) -{ - esa_activate(hdl, why); -} - int esa_suspend(struct esa_softc *sc) { |