summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2006-05-08 18:32:12 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2006-05-08 18:32:12 +0000
commit806c5e4c051c2a840d87bd9ba50f223ecb2851ad (patch)
tree226ffe50a3e93a6c6c421b352bee47c369bc9f96 /sys/dev
parent59674bc6c1d8ca7c1b0006854f9463bd46ca72ee (diff)
Make ath_attach() return error if the RF is unsupported so the PCI code
can disable its shutdown hooks, otherwise we will panic upon halt. Okay jsg@ and brad@.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/ath.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ic/ath.c b/sys/dev/ic/ath.c
index bb5071f3273..bb1f4090432 100644
--- a/sys/dev/ic/ath.c
+++ b/sys/dev/ic/ath.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ath.c,v 1.48 2006/04/20 20:29:56 miod Exp $ */
+/* $OpenBSD: ath.c,v 1.49 2006/05/08 18:32:11 pedro Exp $ */
/* $NetBSD: ath.c,v 1.37 2004/08/18 21:59:39 dyoung Exp $ */
/*-
@@ -255,6 +255,7 @@ ath_attach(u_int16_t devid, struct ath_softc *sc)
if (ah->ah_radio_5ghz_revision >= AR5K_SREV_RAD_UNSUPP ||
ah->ah_radio_2ghz_revision >= AR5K_SREV_RAD_UNSUPP) {
printf(": RF radio not supported\n");
+ error = EOPNOTSUPP;
goto bad;
}