summaryrefslogtreecommitdiff
path: root/kernel/xpp/card_pri.c
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2009-05-27 13:15:29 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2009-05-27 13:15:29 +0000
commit15cb848eadd51323f34df76c8752dbd580f267a6 (patch)
tree1c3dc3b7d2a3e8daeaddb735906c0ac3acdddddf /kernel/xpp/card_pri.c
parent1a5c5df3dd49acdda584802aa1b7e0cc32476066 (diff)
xpp: Replaece member bus_id with dev_name() and set_dev_name()
As of 2.6.26 the macros dev_name() and set_dev_name() are used to read and set (respectively) the bus_id member in sysfs. As of 2.6.30 bus_id is gone. This patch provides comaptiobility macros for older kernel versions and removes direct usage of bus_id. From dahdi-linux r6637. Regarding issue #14965 . git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4649 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'kernel/xpp/card_pri.c')
-rw-r--r--kernel/xpp/card_pri.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/xpp/card_pri.c b/kernel/xpp/card_pri.c
index c018bcf..34b5824 100644
--- a/kernel/xpp/card_pri.c
+++ b/kernel/xpp/card_pri.c
@@ -2087,7 +2087,7 @@ static int pri_xpd_probe(struct device *dev)
/* Is it our device? */
if(xpd->type != XPD_TYPE_PRI) {
XPD_ERR(xpd, "drop suggestion for %s (%d)\n",
- dev->bus_id, xpd->type);
+ dev_name(dev), xpd->type);
return -EINVAL;
}
XPD_DBG(DEVICES, xpd, "SYSFS\n");