summaryrefslogtreecommitdiffstats
path: root/sys/dev/ed
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1997-10-29 00:51:50 +0000
committerjdp <jdp@FreeBSD.org>1997-10-29 00:51:50 +0000
commitaddd7d2b5d469a8b3c11cfc9d397c0faad4ade9a (patch)
tree5fc25b1b254e1176f94db4f75115128617f73942 /sys/dev/ed
parent827244dc7af41cc23a70ef09c97f87098cca61c1 (diff)
downloadFreeBSD-src-addd7d2b5d469a8b3c11cfc9d397c0faad4ade9a.zip
FreeBSD-src-addd7d2b5d469a8b3c11cfc9d397c0faad4ade9a.tar.gz
The previous change added a use of the DATA_SET macro, but forgot
to define it by including <sys/kernel.h>. That broke PC-CARD support for this driver, producing the dreaded "device allocation failed" message. Surprisingly, the missing include caused only two compiler warnings. The compilation still "succeeded" anyway.
Diffstat (limited to 'sys/dev/ed')
-rw-r--r--sys/dev/ed/if_ed.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c
index 72871d8..f54ee7e 100644
--- a/sys/dev/ed/if_ed.c
+++ b/sys/dev/ed/if_ed.c
@@ -24,7 +24,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: if_ed.c,v 1.124 1997/10/26 04:53:51 nate Exp $
+ * $Id: if_ed.c,v 1.125 1997/10/26 21:08:40 nate Exp $
*/
/*
@@ -183,6 +183,7 @@ static void ed_setrcr(struct ed_softc *);
static u_long ds_crc(u_char *ep);
#if NCARD > 0
+#include <sys/kernel.h>
#include <sys/select.h>
#include <pccard/card.h>
#include <pccard/driver.h>
OpenPOWER on IntegriCloud