diff options
Diffstat (limited to 'sys/dev/cardbus/if_ath_cardbus.c')
-rw-r--r-- | sys/dev/cardbus/if_ath_cardbus.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/sys/dev/cardbus/if_ath_cardbus.c b/sys/dev/cardbus/if_ath_cardbus.c index 4e6cad90e50..2b0df66f76c 100644 --- a/sys/dev/cardbus/if_ath_cardbus.c +++ b/sys/dev/cardbus/if_ath_cardbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ath_cardbus.c,v 1.3 2005/02/16 14:29:14 aaron Exp $ */ +/* $OpenBSD: if_ath_cardbus.c,v 1.4 2005/05/28 00:46:46 robert Exp $ */ /* $NetBSD: if_ath_cardbus.c,v 1.4 2004/08/02 19:14:28 mycroft Exp $ */ /* @@ -282,21 +282,11 @@ ath_cardbus_disable(struct ath_softc *sc) void ath_cardbus_power(struct ath_softc *sc, int why) { - struct ath_cardbus_softc *csc = (void *) sc; printf("%s: ath_cardbus_power\n", sc->sc_dev.dv_xname); - if (why == PWR_RESUME) { - /* - * Give the PCI configuration registers a kick - * in the head. - */ -#ifdef DIAGNOSTIC - if (ATH_IS_ENABLED(sc) == 0) - panic("ath_cardbus_power"); -#endif - ath_cardbus_setup(csc); - } + if (why == PWR_RESUME) + ath_enable(sc); } void |