readded the class_create_file stuff, that didn't harm anything but created compiler warnings
This commit is contained in:
parent
ab4597fde4
commit
50bfd90684
|
@ -1,6 +1,6 @@
|
|||
# Makefile for the modular ISDN driver
|
||||
#
|
||||
# EXTRA_CFLAGS += -S -g
|
||||
EXTRA_CFLAGS += -ggdb
|
||||
#
|
||||
|
||||
ifdef MINCLUDES
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Makefile for the modular ISDN driver
|
||||
#
|
||||
# EXTRA_CFLAGS += -S -g
|
||||
EXTRA_CFLAGS += -ggdb
|
||||
#
|
||||
|
||||
ifdef MINCLUDES
|
||||
|
|
|
@ -78,12 +78,12 @@ mISDN_register_sysfs_inst(mISDNinstance_t *inst) {
|
|||
if (err)
|
||||
return(err);
|
||||
|
||||
#ifdef SYSFS_SUPPORT
|
||||
class_device_create_file(&inst->class_dev, &class_device_attr_id);
|
||||
class_device_create_file(&inst->class_dev, &class_device_attr_name);
|
||||
class_device_create_file(&inst->class_dev, &class_device_attr_extentions);
|
||||
class_device_create_file(&inst->class_dev, &class_device_attr_regcnt);
|
||||
|
||||
#ifdef SYSFS_SUPPORT
|
||||
err = sysfs_create_group(&inst->class_dev.kobj, &pid_group);
|
||||
if (err)
|
||||
goto out_unreg;
|
||||
|
|
|
@ -109,10 +109,10 @@ mISDN_register_sysfs_obj(mISDNobject_t *obj) {
|
|||
if (err)
|
||||
goto out;
|
||||
|
||||
#ifdef SYSFS_SUPPORT
|
||||
class_device_create_file(&obj->class_dev, &class_device_attr_id);
|
||||
class_device_create_file(&obj->class_dev, &class_device_attr_name);
|
||||
class_device_create_file(&obj->class_dev, &class_device_attr_refcnt);
|
||||
#ifdef SYSFS_SUPPORT
|
||||
err = sysfs_create_group(&obj->class_dev.kobj, &BPROTO_group);
|
||||
if (err)
|
||||
goto out_unreg;
|
||||
|
|
|
@ -243,10 +243,12 @@ mISDN_register_sysfs_stack(mISDNstack_t *st)
|
|||
err = sysfs_create_group(&st->class_dev.kobj, &new_pid_group);
|
||||
if (err)
|
||||
goto out_unreg;
|
||||
#endif
|
||||
class_device_create_file(&st->class_dev, &class_device_attr_id);
|
||||
class_device_create_file(&st->class_dev, &class_device_attr_qlen);
|
||||
class_device_create_file(&st->class_dev, &class_device_attr_status);
|
||||
|
||||
#ifdef SYSFS_SUPPORT
|
||||
if (st->parent) {
|
||||
sysfs_create_link(&st->class_dev.kobj, &st->parent->class_dev.kobj, "parent");
|
||||
snprintf(name, 12, "child%d", (CHILD_ID_MASK & st->id) >> 16);
|
||||
|
@ -260,9 +262,11 @@ mISDN_register_sysfs_stack(mISDNstack_t *st)
|
|||
#endif
|
||||
return(err);
|
||||
|
||||
#ifdef SYSFS_SUPPORT
|
||||
out_unreg:
|
||||
class_device_unregister(&st->class_dev);
|
||||
return(err);
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue