Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-2.6: debugfs: fix sparse warnings Driver core: Fix cleanup when failing device_add(). driver core: Remove dpm_sysfs_remove() from error path of device_add() PM: fix new mutex-locking bug in the PM core PM: Do not acquire device semaphores upfront during suspend kobject: properly initialize ksets sysfs: CONFIG_SYSFS_DEPRECATED fix driver core: fix up Kconfig text for CONFIG_SYSFS_DEPRECATED
This commit is contained in:
+5
-6
@@ -153,6 +153,10 @@ static void kobject_init_internal(struct kobject *kobj)
|
||||
return;
|
||||
kref_init(&kobj->kref);
|
||||
INIT_LIST_HEAD(&kobj->entry);
|
||||
kobj->state_in_sysfs = 0;
|
||||
kobj->state_add_uevent_sent = 0;
|
||||
kobj->state_remove_uevent_sent = 0;
|
||||
kobj->state_initialized = 1;
|
||||
}
|
||||
|
||||
|
||||
@@ -289,13 +293,8 @@ void kobject_init(struct kobject *kobj, struct kobj_type *ktype)
|
||||
dump_stack();
|
||||
}
|
||||
|
||||
kref_init(&kobj->kref);
|
||||
INIT_LIST_HEAD(&kobj->entry);
|
||||
kobject_init_internal(kobj);
|
||||
kobj->ktype = ktype;
|
||||
kobj->state_in_sysfs = 0;
|
||||
kobj->state_add_uevent_sent = 0;
|
||||
kobj->state_remove_uevent_sent = 0;
|
||||
kobj->state_initialized = 1;
|
||||
return;
|
||||
|
||||
error:
|
||||
|
||||
Reference in New Issue
Block a user