Quellcode durchsuchen

regulator: Remove owner field from attribute initialization in regulator core driver

Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Guenter Roeck vor 15 Jahren
Ursprung
Commit
068a2782f5
1 geänderte Dateien mit 0 neuen und 1 gelöschten Zeilen
  1. 0 1
      drivers/regulator/core.c

+ 0 - 1
drivers/regulator/core.c

@@ -1025,7 +1025,6 @@ static struct regulator *create_regulator(struct regulator_dev *rdev,
 		if (regulator->dev_attr.attr.name == NULL)
 		if (regulator->dev_attr.attr.name == NULL)
 			goto attr_name_err;
 			goto attr_name_err;
 
 
-		regulator->dev_attr.attr.owner = THIS_MODULE;
 		regulator->dev_attr.attr.mode = 0444;
 		regulator->dev_attr.attr.mode = 0444;
 		regulator->dev_attr.show = device_requested_uA_show;
 		regulator->dev_attr.show = device_requested_uA_show;
 		err = device_create_file(dev, &regulator->dev_attr);
 		err = device_create_file(dev, &regulator->dev_attr);