diff options
author | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2009-05-27 13:15:29 +0000 |
---|---|---|
committer | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2009-05-27 13:15:29 +0000 |
commit | 15cb848eadd51323f34df76c8752dbd580f267a6 (patch) | |
tree | 1c3dc3b7d2a3e8daeaddb735906c0ac3acdddddf /kernel/xpp/card_fxo.c | |
parent | 1a5c5df3dd49acdda584802aa1b7e0cc32476066 (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_fxo.c')
-rw-r--r-- | kernel/xpp/card_fxo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/xpp/card_fxo.c b/kernel/xpp/card_fxo.c index bc6b61d..2071611 100644 --- a/kernel/xpp/card_fxo.c +++ b/kernel/xpp/card_fxo.c @@ -1359,7 +1359,7 @@ static int fxo_xpd_probe(struct device *dev) /* Is it our device? */ if(xpd->type != XPD_TYPE_FXO) { 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"); |