Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Use ahc_freedmamem() for consistency. No function...
details: https://anonhg.NetBSD.org/src/rev/307c1fbc45be
branches: trunk
changeset: 321727:307c1fbc45be
user: rin <rin%NetBSD.org@localhost>
date: Mon Apr 02 10:44:06 2018 +0000
description:
Use ahc_freedmamem() for consistency. No functional change intended.
diffstat:
sys/dev/ic/aic7xxx.c | 15 ++++++---------
1 files changed, 6 insertions(+), 9 deletions(-)
diffs (43 lines):
diff -r a03e2c0ca161 -r 307c1fbc45be sys/dev/ic/aic7xxx.c
--- a/sys/dev/ic/aic7xxx.c Mon Apr 02 10:32:47 2018 +0000
+++ b/sys/dev/ic/aic7xxx.c Mon Apr 02 10:44:06 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: aic7xxx.c,v 1.133 2018/04/02 10:32:47 rin Exp $ */
+/* $NetBSD: aic7xxx.c,v 1.134 2018/04/02 10:44:06 rin Exp $ */
/*
* Core routines and tables shareable across OS platforms.
@@ -39,7 +39,7 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
*
- * $Id: aic7xxx.c,v 1.133 2018/04/02 10:32:47 rin Exp $
+ * $Id: aic7xxx.c,v 1.134 2018/04/02 10:44:06 rin Exp $
*
* //depot/aic7xxx/aic7xxx/aic7xxx.c#112 $
*
@@ -50,7 +50,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aic7xxx.c,v 1.133 2018/04/02 10:32:47 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aic7xxx.c,v 1.134 2018/04/02 10:44:06 rin Exp $");
#include <dev/ic/aic7xxx_osm.h>
#include <dev/ic/aic7xxx_inline.h>
@@ -3922,12 +3922,9 @@
/* TAILQ_REMOVE(&ahc_tailq, ahc, links); XXX */
/* FALLTHROUGH */
case 1:
- bus_dmamap_unload(ahc->parent_dmat, ahc->shared_data_dmamap);
- bus_dmamap_destroy(ahc->parent_dmat, ahc->shared_data_dmamap);
- bus_dmamem_unmap(ahc->parent_dmat, (void *)ahc->qoutfifo,
- ahc->shared_data_size);
- bus_dmamem_free(ahc->parent_dmat, &ahc->shared_data_seg,
- ahc->shared_data_nseg);
+ ahc_freedmamem(ahc->parent_dmat, ahc->shared_data_size,
+ ahc->shared_data_dmamap, (void *)ahc->qoutfifo,
+ &ahc->shared_data_seg, ahc->shared_data_nseg);
break;
case 0:
break;
Home |
Main Index |
Thread Index |
Old Index