summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2006-03-20 09:46:29 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2006-03-20 09:46:29 +0000
commit673b9004300ba67bc14dfe968847e3feee49cf88 (patch)
treebd2e84291ea0de7ca1dcd4fbe8cc4a5ce72010ad
parent3ddeccb03ead9876970ec693bb622d84a8c48150 (diff)
switch the mgmt ioctl path to use the ioctl completion function.
-rw-r--r--sys/dev/ic/ami.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/ic/ami.c b/sys/dev/ic/ami.c
index 3b4c68cd71d..e0434435ac8 100644
--- a/sys/dev/ic/ami.c
+++ b/sys/dev/ic/ami.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ami.c,v 1.130 2006/03/20 09:34:37 dlg Exp $ */
+/* $OpenBSD: ami.c,v 1.131 2006/03/20 09:46:28 dlg Exp $ */
/*
* Copyright (c) 2001 Michael Shalayeff
@@ -1766,9 +1766,8 @@ ami_mgmt(struct ami_softc *sc, u_int8_t opcode, u_int8_t par1, u_int8_t par2,
idata = AMIMEM_KVA(am);
}
- ccb->ccb_data = NULL;
- ccb->ccb_done = ami_done_ccb;
ccb->ccb_wakeup = 1;
+ ccb->ccb_done = ami_done_ioctl;
cmd = &ccb->ccb_cmd;
cmd->acc_cmd = opcode;
@@ -1795,7 +1794,6 @@ ami_mgmt(struct ami_softc *sc, u_int8_t opcode, u_int8_t par1, u_int8_t par2,
cmd->acc_io.aio_data = am ? htole32(AMIMEM_DVA(am)) : 0;
ami_start(sc, ccb);
-
while (ccb->ccb_wakeup)
tsleep(ccb, PRIBIO,"ami_mgmt", 0);