+ a specific device.
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
-@@ -1318,6 +1318,34 @@ static ssize_t online_store(struct devic
+@@ -1333,6 +1333,34 @@ static ssize_t online_store(struct devic
}
static DEVICE_ATTR_RW(online);
int device_add_groups(struct device *dev, const struct attribute_group **groups)
{
return sysfs_create_groups(&dev->kobj, groups);
-@@ -1489,8 +1517,20 @@ static int device_add_attrs(struct devic
+@@ -1504,8 +1532,20 @@ static int device_add_attrs(struct devic
goto err_remove_dev_groups;
}
err_remove_dev_groups:
device_remove_groups(dev, dev->groups);
err_remove_type_groups:
-@@ -1508,6 +1548,8 @@ static void device_remove_attrs(struct d
+@@ -1523,6 +1563,8 @@ static void device_remove_attrs(struct d
struct class *class = dev->class;
const struct device_type *type = dev->type;