regulator: Remove owner field from attribute initialization in regulator core driver
authorGuenter Roeck <[email protected]>
Thu, 29 Jul 2010 05:09:24 +0000 (22:09 -0700)
committerGreg Kroah-Hartman <[email protected]>
Thu, 5 Aug 2010 20:53:35 +0000 (13:53 -0700)
Signed-off-by: Guenter Roeck <[email protected]>
Acked-by: Mark Brown <[email protected]>
Acked-by: Tejun Heo <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/regulator/core.c

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