diff --git a/sys/kern/subr_rman.c b/sys/kern/subr_rman.c index 1cc006b97249..f5bfd5bc2c70 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) { diff --git a/sys/sys/rman.h b/sys/sys/rman.h index ef56f5996791..e7831707ec35 100644 --- a/sys/sys/rman.h +++ b/sys/sys/rman.h @@ -149,14 +149,6 @@ void rman_set_virtual(struct resource *_r, void *_v); extern struct rman_head rman_head; -/* - * 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); -void rman_secret_puc_free_resource(struct resource *r); #endif /* _KERNEL */ #endif /* !_SYS_RMAN_H_ */