summaryrefslogtreecommitdiff
path: root/drivers/dahdi/xpp/xpp_dahdi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dahdi/xpp/xpp_dahdi.c')
-rw-r--r--drivers/dahdi/xpp/xpp_dahdi.c4
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) {