diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/kobject_uevent.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c index a8efb48dca54..2e4eae5b0824 100644 --- a/lib/kobject_uevent.c +++ b/lib/kobject_uevent.c | |||
@@ -77,7 +77,7 @@ out: | |||
77 | /** | 77 | /** |
78 | * kobject_uevent_env - send an uevent with environmental data | 78 | * kobject_uevent_env - send an uevent with environmental data |
79 | * | 79 | * |
80 | * @action: action that is happening (usually KOBJ_MOVE) | 80 | * @action: action that is happening |
81 | * @kobj: struct kobject that the action is happening to | 81 | * @kobj: struct kobject that the action is happening to |
82 | * @envp_ext: pointer to environmental data | 82 | * @envp_ext: pointer to environmental data |
83 | * | 83 | * |
@@ -102,9 +102,9 @@ int kobject_uevent_env(struct kobject *kobj, enum kobject_action action, | |||
102 | 102 | ||
103 | /* search the kset we belong to */ | 103 | /* search the kset we belong to */ |
104 | top_kobj = kobj; | 104 | top_kobj = kobj; |
105 | while (!top_kobj->kset && top_kobj->parent) { | 105 | while (!top_kobj->kset && top_kobj->parent) |
106 | top_kobj = top_kobj->parent; | 106 | top_kobj = top_kobj->parent; |
107 | } | 107 | |
108 | if (!top_kobj->kset) { | 108 | if (!top_kobj->kset) { |
109 | pr_debug("kobject attempted to send uevent without kset!\n"); | 109 | pr_debug("kobject attempted to send uevent without kset!\n"); |
110 | return -EINVAL; | 110 | return -EINVAL; |
@@ -237,7 +237,7 @@ EXPORT_SYMBOL_GPL(kobject_uevent_env); | |||
237 | /** | 237 | /** |
238 | * kobject_uevent - notify userspace by ending an uevent | 238 | * kobject_uevent - notify userspace by ending an uevent |
239 | * | 239 | * |
240 | * @action: action that is happening (usually KOBJ_ADD and KOBJ_REMOVE) | 240 | * @action: action that is happening |
241 | * @kobj: struct kobject that the action is happening to | 241 | * @kobj: struct kobject that the action is happening to |
242 | * | 242 | * |
243 | * Returns 0 if kobject_uevent() is completed with success or the | 243 | * Returns 0 if kobject_uevent() is completed with success or the |