regulator: isl9305: Add missing .owner field in regulator_desc
authorAxel Lin <axel.lin@ingics.com>
Mon, 27 Aug 2018 14:15:21 +0000 (22:15 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 28 Aug 2018 18:41:36 +0000 (19:41 +0100)
Add missing .owner field in regulator_desc, which is used for refcounting.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/isl9305.c

index 257c1943e7534276a058c9e98f015c26eafeb0ee..9c2607e912cf0339830e791e50d94b960e3e7b22 100644 (file)
@@ -84,6 +84,7 @@ static const struct regulator_desc isl9305_regulators[] = {
                .enable_mask =  ISL9305_DCD1_EN,
                .supply_name =  "VINDCD1",
                .ops =          &isl9305_ops,
+               .owner =        THIS_MODULE,
        },
        [ISL9305_DCD2] = {
                .name =         "DCD2",
@@ -98,6 +99,7 @@ static const struct regulator_desc isl9305_regulators[] = {
                .enable_mask =  ISL9305_DCD2_EN,
                .supply_name =  "VINDCD2",
                .ops =          &isl9305_ops,
+               .owner =        THIS_MODULE,
        },
        [ISL9305_LDO1] = {
                .name =         "LDO1",
@@ -112,6 +114,7 @@ static const struct regulator_desc isl9305_regulators[] = {
                .enable_mask =  ISL9305_LDO1_EN,
                .supply_name =  "VINLDO1",
                .ops =          &isl9305_ops,
+               .owner =        THIS_MODULE,
        },
        [ISL9305_LDO2] = {
                .name =         "LDO2",
@@ -126,6 +129,7 @@ static const struct regulator_desc isl9305_regulators[] = {
                .enable_mask =  ISL9305_LDO2_EN,
                .supply_name =  "VINLDO2",
                .ops =          &isl9305_ops,
+               .owner =        THIS_MODULE,
        },
 };