summaryrefslogtreecommitdiffstats
path: root/sys/dev/mlx/mlx.c
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>2000-11-28 06:17:32 +0000
committermdodd <mdodd@FreeBSD.org>2000-11-28 06:17:32 +0000
commit67b4379f04a36c31ca81b79bacd6649857bbb563 (patch)
tree2efe53028a9cf8d4d861067fcd389493d9866598 /sys/dev/mlx/mlx.c
parent51f405ec6ea3c70e9e867604bf429307817cb25c (diff)
downloadFreeBSD-src-67b4379f04a36c31ca81b79bacd6649857bbb563.zip
FreeBSD-src-67b4379f04a36c31ca81b79bacd6649857bbb563.tar.gz
Avoid hardcoding the 'rid' and 'type' of the MEM/IOPORT resource.
Store the 'rid' and 'type' in the softc and use them in mlx.c:mlx_free(). EISA and MCA front ends will require this. Approved by: msmith
Diffstat (limited to 'sys/dev/mlx/mlx.c')
-rw-r--r--sys/dev/mlx/mlx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/mlx/mlx.c b/sys/dev/mlx/mlx.c
index e5271c9..2a952eb 100644
--- a/sys/dev/mlx/mlx.c
+++ b/sys/dev/mlx/mlx.c
@@ -199,8 +199,7 @@ mlx_free(struct mlx_softc *sc)
/* release the register window mapping */
if (sc->mlx_mem != NULL)
- bus_release_resource(sc->mlx_dev, SYS_RES_MEMORY,
- (sc->mlx_iftype == MLX_IFTYPE_3) ? MLX_CFG_BASE1 : MLX_CFG_BASE0, sc->mlx_mem);
+ bus_release_resource(sc->mlx_dev, sc->mlx_mem_type, sc->mlx_mem_rid, sc->mlx_mem);
/* free controller enquiry data */
if (sc->mlx_enq2 != NULL)
OpenPOWER on IntegriCloud