diff --git a/drivers/isdn/hardware/mISDN/Makefile b/drivers/isdn/hardware/mISDN/Makefile index c9d390e..99c7fb4 100644 --- a/drivers/isdn/hardware/mISDN/Makefile +++ b/drivers/isdn/hardware/mISDN/Makefile @@ -1,6 +1,6 @@ # Makefile for the modular ISDN driver # -# EXTRA_CFLAGS += -S -g +EXTRA_CFLAGS += -ggdb # ifdef MINCLUDES diff --git a/drivers/isdn/hardware/mISDN/Makefile.v2.6 b/drivers/isdn/hardware/mISDN/Makefile.v2.6 index c9d390e..99c7fb4 100644 --- a/drivers/isdn/hardware/mISDN/Makefile.v2.6 +++ b/drivers/isdn/hardware/mISDN/Makefile.v2.6 @@ -1,6 +1,6 @@ # Makefile for the modular ISDN driver # -# EXTRA_CFLAGS += -S -g +EXTRA_CFLAGS += -ggdb # ifdef MINCLUDES diff --git a/drivers/isdn/hardware/mISDN/sysfs_inst.c b/drivers/isdn/hardware/mISDN/sysfs_inst.c index 6482e7e..e6e6515 100644 --- a/drivers/isdn/hardware/mISDN/sysfs_inst.c +++ b/drivers/isdn/hardware/mISDN/sysfs_inst.c @@ -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; diff --git a/drivers/isdn/hardware/mISDN/sysfs_obj.c b/drivers/isdn/hardware/mISDN/sysfs_obj.c index 19a87f8..d488284 100644 --- a/drivers/isdn/hardware/mISDN/sysfs_obj.c +++ b/drivers/isdn/hardware/mISDN/sysfs_obj.c @@ -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; diff --git a/drivers/isdn/hardware/mISDN/sysfs_st.c b/drivers/isdn/hardware/mISDN/sysfs_st.c index 2d44f62..3545588 100644 --- a/drivers/isdn/hardware/mISDN/sysfs_st.c +++ b/drivers/isdn/hardware/mISDN/sysfs_st.c @@ -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