diff options
author | mdodd <mdodd@FreeBSD.org> | 1999-11-06 07:38:01 +0000 |
---|---|---|
committer | mdodd <mdodd@FreeBSD.org> | 1999-11-06 07:38:01 +0000 |
commit | 52caff0893d5a4c7c4086fc1f537b517c66dcbf7 (patch) | |
tree | 28a0cee1b9eef70311deb07bf1778e13cd22c810 /sys/dev/mca | |
parent | 762019455389685fe483d2061bbc5c12bb40ac9b (diff) | |
download | FreeBSD-src-52caff0893d5a4c7c4086fc1f537b517c66dcbf7.zip FreeBSD-src-52caff0893d5a4c7c4086fc1f537b517c66dcbf7.tar.gz |
resource_list_{alloc,release}() takes a struct resource_list * as its
first arg.
Reminded by: Andy Farkas <andyf@speednet.com.au>
Diffstat (limited to 'sys/dev/mca')
-rw-r--r-- | sys/dev/mca/mca_bus.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/mca/mca_bus.c b/sys/dev/mca/mca_bus.c index 2846656..f105ea1 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[] = { |