From 0b13254ec47e0e72bcfd29c170f5752f87e957ce Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Mon, 29 Jun 2009 20:56:07 +0000 Subject: dahdi-base: Enable DAHDI to manage the reference counts for the board drivers. Adds a struct module 'owner' member to the dahdi_span structure and updates all the board drivers to set this member before registering the span. This allows the core of dahdi to maintain the reference counts on the channels itself. (closes issue #10601) Reported by: Matti git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6794 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/xpp/xpp_dahdi.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/dahdi/xpp/xpp_dahdi.c') diff --git a/drivers/dahdi/xpp/xpp_dahdi.c b/drivers/dahdi/xpp/xpp_dahdi.c index 6e7ee85..a6f7cc8 100644 --- a/drivers/dahdi/xpp/xpp_dahdi.c +++ b/drivers/dahdi/xpp/xpp_dahdi.c @@ -1056,6 +1056,8 @@ int dahdi_register_xpd(xpd_t *xpd) const xops_t *xops; BUG_ON(!xpd); + WARN_ON(!xpd->span.owner); + xops = xpd->xops; xbus = xpd->xbus; -- cgit v1.2.3