summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMatthew N. Dodd <mdodd@FreeBSD.org>1999-11-06 07:38:01 +0000
committerMatthew N. Dodd <mdodd@FreeBSD.org>1999-11-06 07:38:01 +0000
commit61f676b449e856002cc7a83c615104b2c180a211 (patch)
tree28a0cee1b9eef70311deb07bf1778e13cd22c810 /sys
parentb7969a0a9b3cf3264a66e89f6b1d7140963a038e (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/mca/mca_bus.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/mca/mca_bus.c b/sys/dev/mca/mca_bus.c
index 28466567936c..f105ea17c6fe 100644
--- a/sys/dev/mca/mca_bus.c
+++ b/sys/dev/mca/mca_bus.c
@@ -440,7 +440,6 @@ static int
mca_read_ivar (device_t dev, device_t child, int which, u_long * result)
{
struct mca_device * m_dev = device_get_ivars(child);
- struct resource_list_entry * rle;
switch (which) {
case MCA_IVAR_SLOT:
@@ -486,7 +485,7 @@ mca_alloc_resource (device_t dev, device_t child, int type, int *rid,
}
}
- return (resource_list_alloc(dev, child, type, rid,
+ return (resource_list_alloc(&(m_dev->rl), dev, child, type, rid,
start, end, count, flags));
}
@@ -494,7 +493,9 @@ static int
mca_release_resource (device_t dev, device_t child, int type, int rid,
struct resource * r)
{
- return (resource_list_release(dev, child, type, rid, r));
+ struct mca_device * m_dev = device_get_ivars(child);
+
+ return (resource_list_release(&(m_dev->rl), dev, child, type, rid, r));
}
static device_method_t mca_methods[] = {