diff options
author | marcel <marcel@FreeBSD.org> | 2006-04-28 21:23:09 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2006-04-28 21:23:09 +0000 |
commit | b2cf5a1a9a36661d6138cd0e5f71012c0bc9853f (patch) | |
tree | c9638b6e08f1bbeb1b88faaa3b32690a011d9ead /sys/kern | |
parent | 193a6144b9612bafde9b4382a221e917496b8601 (diff) | |
download | FreeBSD-src-b2cf5a1a9a36661d6138cd0e5f71012c0bc9853f.zip FreeBSD-src-b2cf5a1a9a36661d6138cd0e5f71012c0bc9853f.tar.gz |
Remove the puc-specific hacks. The puc(4) driver now properly uses
the rman(9) interface.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/subr_rman.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/sys/kern/subr_rman.c b/sys/kern/subr_rman.c index 1cc006b..f5bfd5b 100644 --- a/sys/kern/subr_rman.c +++ b/sys/kern/subr_rman.c @@ -120,31 +120,6 @@ int_alloc_resource(int malloc_flag) return (r); } -/* - * XXX: puc.c is a big hack. - * XXX: it should be rewritten to act like a bridge and offer - * XXX: its own resource manager. - * XXX: until somebody has time, help it out with these two functions - */ - -struct resource * -rman_secret_puc_alloc_resource(int malloc_flag) -{ - struct resource_i *r; - - r = int_alloc_resource(malloc_flag); - if (r) - return (&r->r_r); - return (NULL); -} - -void -rman_secret_puc_free_resource(struct resource *r) -{ - - free(r->__r_i, M_RMAN); -} - int rman_init(struct rman *rm) { |