summaryrefslogtreecommitdiff
path: root/sys/dev/radio.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-06-23 06:27:13 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-06-23 06:27:13 +0000
commit8fe25da9d7762dba747313181158c50980ec44e0 (patch)
tree1549a3c414202ab70b3d2420c536b509f0fa2c81 /sys/dev/radio.c
parent3d772db769af639e71686fe04b7b9bafc9aa27de (diff)
In a drivers activate() entry point, if on DVACT_DEACTIVATE it does
something, then it MUST return zero on DVACT_ACTIVATE, not EOPNOTSUPP; this very popular bug has been cut and pasted a lot of times... ok deraadt@ mickey@
Diffstat (limited to 'sys/dev/radio.c')
-rw-r--r--sys/dev/radio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/radio.c b/sys/dev/radio.c
index bbea6d5bce7..e893c892db7 100644
--- a/sys/dev/radio.c
+++ b/sys/dev/radio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: radio.c,v 1.6 2002/05/30 15:22:26 mickey Exp $ */
+/* $OpenBSD: radio.c,v 1.7 2006/06/23 06:27:11 miod Exp $ */
/* $RuOBSD: radio.c,v 1.7 2001/12/04 06:03:05 tm Exp $ */
/*
@@ -196,7 +196,6 @@ radioactivate(struct device *self, enum devact act)
switch (act) {
case DVACT_ACTIVATE:
- return (EOPNOTSUPP);
break;
case DVACT_DEACTIVATE: