Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 068a2782 authored by Guenter Roeck's avatar Guenter Roeck Committed by Greg Kroah-Hartman
Browse files

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

parent 0c8617d3
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -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);