Misc cleanup post removal of class_device. adm1025_group_opt is unused. Signed-off-by: Tony Jones Signed-off-by: Kay Sievers --- drivers/hwmon/adm1025.c | 13 ------------- 1 file changed, 13 deletions(-) --- a/drivers/hwmon/adm1025.c +++ b/drivers/hwmon/adm1025.c @@ -347,17 +347,6 @@ static const struct attribute_group adm1 .attrs = adm1025_attributes, }; -static struct attribute *adm1025_attributes_opt[] = { - &dev_attr_in4_input.attr, - &dev_attr_in4_min.attr, - &dev_attr_in4_max.attr, - NULL -}; - -static const struct attribute_group adm1025_group_opt = { - .attrs = adm1025_attributes_opt, -}; - /* * The following function does more than just detection. If detection * succeeds, it also registers the new chip. @@ -482,7 +471,6 @@ static int adm1025_detect(struct i2c_ada exit_remove: sysfs_remove_group(&new_client->dev.kobj, &adm1025_group); - sysfs_remove_group(&new_client->dev.kobj, &adm1025_group_opt); exit_detach: i2c_detach_client(new_client); exit_free: @@ -540,7 +528,6 @@ static int adm1025_detach_client(struct hwmon_device_unregister(data->hwmon_dev); sysfs_remove_group(&client->dev.kobj, &adm1025_group); - sysfs_remove_group(&client->dev.kobj, &adm1025_group_opt); if ((err = i2c_detach_client(client))) return err; -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/