|
@@ -306,15 +306,10 @@ static ssize_t store_uevent(struct device *dev, struct device_attribute *attr,
|
|
|
{
|
|
|
enum kobject_action action;
|
|
|
|
|
|
- if (kobject_action_type(buf, count, &action) == 0) {
|
|
|
+ if (kobject_action_type(buf, count, &action) == 0)
|
|
|
kobject_uevent(&dev->kobj, action);
|
|
|
- goto out;
|
|
|
- }
|
|
|
-
|
|
|
- dev_err(dev, "uevent: unsupported action-string; this will "
|
|
|
- "be ignored in a future kernel version\n");
|
|
|
- kobject_uevent(&dev->kobj, KOBJ_ADD);
|
|
|
-out:
|
|
|
+ else
|
|
|
+ dev_err(dev, "uevent: unknown action-string\n");
|
|
|
return count;
|
|
|
}
|
|
|
|