diff --git a/sys/arch/macppc/dev/wdc_obio.c b/sys/arch/macppc/dev/wdc_obio.c index b3a78a22179e..bf92edc70b8c 100644 --- a/sys/arch/macppc/dev/wdc_obio.c +++ b/sys/arch/macppc/dev/wdc_obio.c @@ -1,4 +1,4 @@ -/* $NetBSD: wdc_obio.c,v 1.49 2008/03/18 20:46:36 cube Exp $ */ +/* $NetBSD: wdc_obio.c,v 1.50 2008/03/30 18:16:25 macallan Exp $ */ /*- * Copyright (c) 1998, 2003 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: wdc_obio.c,v 1.49 2008/03/18 20:46:36 cube Exp $"); +__KERNEL_RCSID(0, "$NetBSD: wdc_obio.c,v 1.50 2008/03/30 18:16:25 macallan Exp $"); #include #include @@ -460,8 +460,8 @@ wdc_obio_detach(device_t self, int flags) sc->sc_wdcdev.regs->cmd_baseioh, WDC_REG_NPORTS << 4); /* Unmap DMA registers. */ - /* XXX unmapiodev(sc->sc_dmareg); */ - /* XXX free(sc->sc_dmacmd); */ + bus_space_unmap(sc->sc_wdcdev.regs->cmd_iot, sc->sc_dmaregh, 0x100); + free(sc->sc_dmacmd, M_DEVBUF); return 0; }