diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2009-05-19 14:12:15 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2009-05-19 14:12:15 +0000 |
commit | 89a058fe300d70e374ff0501429c48ec10c7b840 (patch) | |
tree | f00263e7d2cf1c49066443480a4a1b6af3589844 /drivers/dahdi/xpp/card_fxs.c | |
parent | 0d0f3264f954d4880a3725423587af99032fd5ca (diff) |
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.
(closes issue #14965)
Patches:
xpp_2630_dev_name.diff uploaded by tzafrir (license 46)
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6637 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/xpp/card_fxs.c')
-rw-r--r-- | drivers/dahdi/xpp/card_fxs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dahdi/xpp/card_fxs.c b/drivers/dahdi/xpp/card_fxs.c index c00684e..0aee211 100644 --- a/drivers/dahdi/xpp/card_fxs.c +++ b/drivers/dahdi/xpp/card_fxs.c @@ -1502,7 +1502,7 @@ static int fxs_xpd_probe(struct device *dev) /* Is it our device? */ if(xpd->type != XPD_TYPE_FXS) { 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"); |