From 4be5101ff455df8ed4097977587cf2f34addb7cc Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Tue, 13 Jul 2010 19:38:13 +0000 Subject: start migrating from xbus_num() to get_xbus()/put_xbus() * Now get_xbus() receive and xbus number (not poiner) and uses xbus_num() internally to map it to an xbus pointer + refcount increment. (this is atomic) * Migrate all obvious places that used xbus_num() to map bus number into a pointer, so now they use get_xbus() + put_xbus() to aquire and release an xbus. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8913 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/xpp/xpp_dahdi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (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 cc92710..72b514e 100644 --- a/drivers/dahdi/xpp/xpp_dahdi.c +++ b/drivers/dahdi/xpp/xpp_dahdi.c @@ -571,8 +571,8 @@ __must_check xpd_t *xpd_alloc(xbus_t *xbus, * This makes sure the xbus cannot be removed before this xpd * is removed in xpd_free() */ - xbus = get_xbus(__FUNCTION__, xbus); /* returned in xpd_free() */ - xproto_get(type); /* will be returned in xpd_free() */ + xbus = get_xbus(__func__, xbus->num); /* returned in xpd_free() */ + xproto_get(type); /* will be returned in xpd_free() */ return xpd; err: if(xpd) { -- cgit v1.2.3