summaryrefslogtreecommitdiffstats
path: root/sys/dev/mca
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-01-19 09:29:34 +0000
committerjhb <jhb@FreeBSD.org>2001-01-19 09:29:34 +0000
commitacde0edb4dc1b1c096343db3a6230abf6ab4851d (patch)
treeae6cac3161b08875c2c162307df54a63f3c8427c /sys/dev/mca
parent9dbfa12c645340fe9d4ebd39ed76fd32651bbb1a (diff)
downloadFreeBSD-src-acde0edb4dc1b1c096343db3a6230abf6ab4851d.zip
FreeBSD-src-acde0edb4dc1b1c096343db3a6230abf6ab4851d.tar.gz
- Remove an unused write_ivars function that didn't do anything anyway.
- Return NULL from mca_alloc_resource() instead of ENOENT if we are passed in an empty resource list.
Diffstat (limited to 'sys/dev/mca')
-rw-r--r--sys/dev/mca/mca_bus.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/dev/mca/mca_bus.c b/sys/dev/mca/mca_bus.c
index 3ee8e8e..0400a44 100644
--- a/sys/dev/mca/mca_bus.c
+++ b/sys/dev/mca/mca_bus.c
@@ -461,12 +461,6 @@ mca_read_ivar (device_t dev, device_t child, int which, u_long * result)
return (0);
}
-static int
-mca_write_ivar(device_t dev, device_t child, int which, uintptr_t value)
-{
- return (EINVAL);
-}
-
static struct resource *
mca_alloc_resource (device_t dev, device_t child, int type, int *rid,
u_long start, u_long end, u_long count, u_int flags)
@@ -502,7 +496,7 @@ mca_get_resource_list (device_t dev, device_t child)
struct resource_list * rl = &m_dev->rl;
if (!rl)
- return (ENOENT);
+ return (NULL);
return (rl);
}
OpenPOWER on IntegriCloud