diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2010-07-13 19:38:13 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2010-07-13 19:38:13 +0000 |
commit | 4be5101ff455df8ed4097977587cf2f34addb7cc (patch) | |
tree | 35f5fcc4ddc405988864af7a80fcffb2271db1b6 /drivers/dahdi/xpp/xpp_dahdi.c | |
parent | ce0d2d4620f49e6ac0ec697733c786369ad8c822 (diff) |
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
Diffstat (limited to 'drivers/dahdi/xpp/xpp_dahdi.c')
-rw-r--r-- | drivers/dahdi/xpp/xpp_dahdi.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |