diff options
author | Phil Sutter <phil.sutter@viprinet.com> | 2015-02-24 12:46:53 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2015-02-28 10:14:26 +0100 |
commit | 2c5a022d3e65779668f071446d80cf27bfe4c037 (patch) | |
tree | 4c06a5066bd7520b6fe0339ac82499389070697d /package/mISDN/patches/patch-drivers_isdn_hardware_mISDN_sysfs_inst_c | |
parent | 4b45b4b6517d76d769dafa6da23ef13aa1315388 (diff) |
port packages mISDN, mISDNuser and capi4k-utils
mISDN still has some unresolved problems with sysfs object creation, to
be fixed.
Diffstat (limited to 'package/mISDN/patches/patch-drivers_isdn_hardware_mISDN_sysfs_inst_c')
-rw-r--r-- | package/mISDN/patches/patch-drivers_isdn_hardware_mISDN_sysfs_inst_c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/package/mISDN/patches/patch-drivers_isdn_hardware_mISDN_sysfs_inst_c b/package/mISDN/patches/patch-drivers_isdn_hardware_mISDN_sysfs_inst_c new file mode 100644 index 000000000..bdc1d1397 --- /dev/null +++ b/package/mISDN/patches/patch-drivers_isdn_hardware_mISDN_sysfs_inst_c @@ -0,0 +1,30 @@ + - see core.c +--- mISDN-1_1_9_2.orig/drivers/isdn/hardware/mISDN/sysfs_inst.c 2009-06-09 10:09:20.000000000 +0200 ++++ mISDN-1_1_9_2/drivers/isdn/hardware/mISDN/sysfs_inst.c 2011-07-11 14:08:22.920000979 +0200 +@@ -82,7 +82,7 @@ static void release_mISDN_inst(struct de + #endif + if (core_debug & DEBUG_SYSFS) + #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26) +- printk(KERN_INFO "release instance class dev %s\n", dev->bus_id); ++ printk(KERN_INFO "release instance class dev %s\n", kobject_name(&dev->kobj)); + #else + printk(KERN_INFO "release instance class dev %s\n", dev->class_id); + #endif +@@ -99,7 +99,7 @@ static void release_mISDN_inst(struct cl + #endif + if (core_debug & DEBUG_SYSFS) + #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26) +- printk(KERN_INFO "release instance class dev %s\n", dev->bus_id); ++ printk(KERN_INFO "release instance class dev %s\n", kobject_name(&dev->kobj)); + #else + printk(KERN_INFO "release instance class dev %s\n", dev->class_id); + #endif +@@ -127,7 +127,7 @@ mISDN_register_sysfs_inst(mISDNinstance_ + + inst->class_dev.class = &inst_dev_class; + #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26) +- snprintf(inst->class_dev.bus_id, BUS_ID_SIZE, "inst-%08x", inst->id); ++ dev_set_name(&inst->class_dev, "inst-%08x", inst->id); + err = device_register(&inst->class_dev); + #else + snprintf(inst->class_dev.class_id, BUS_ID_SIZE, "inst-%08x", inst->id); |