mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[PATCH] driver core: replace "hotplug" by "uevent"
Leave the overloaded "hotplug" word to susbsystems which are handling real devices. The driver core does not "plug" anything, it just exports the state to userspace and generates events. Signed-off-by: Kay Sievers <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
5f123fbd80
commit
312c004d36
40 changed files with 372 additions and 378 deletions
|
|
@ -207,7 +207,7 @@ int kobject_register(struct kobject * kobj)
|
|||
kobject_name(kobj),error);
|
||||
dump_stack();
|
||||
} else
|
||||
kobject_hotplug(kobj, KOBJ_ADD);
|
||||
kobject_uevent(kobj, KOBJ_ADD);
|
||||
} else
|
||||
error = -EINVAL;
|
||||
return error;
|
||||
|
|
@ -312,7 +312,7 @@ void kobject_del(struct kobject * kobj)
|
|||
void kobject_unregister(struct kobject * kobj)
|
||||
{
|
||||
pr_debug("kobject %s: unregistering\n",kobject_name(kobj));
|
||||
kobject_hotplug(kobj, KOBJ_REMOVE);
|
||||
kobject_uevent(kobj, KOBJ_REMOVE);
|
||||
kobject_del(kobj);
|
||||
kobject_put(kobj);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue