diff options
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c index 72c6ee57471b..f69305c7269d 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c | |||
@@ -296,6 +296,9 @@ out: | |||
296 | static ssize_t store_uevent(struct device *dev, struct device_attribute *attr, | 296 | static ssize_t store_uevent(struct device *dev, struct device_attribute *attr, |
297 | const char *buf, size_t count) | 297 | const char *buf, size_t count) |
298 | { | 298 | { |
299 | if (memcmp(buf, "add", 3) != 0) | ||
300 | dev_err(dev, "uevent: unsupported action-string; this will " | ||
301 | "be ignored in a future kernel version"); | ||
299 | kobject_uevent(&dev->kobj, KOBJ_ADD); | 302 | kobject_uevent(&dev->kobj, KOBJ_ADD); |
300 | return count; | 303 | return count; |
301 | } | 304 | } |