Commit 5c42903e authored by Axel Lin's avatar Axel Lin Committed by Mark Brown

regulator: rt4831: Add missing .owner field in regulator_desc

Add missing .owner field in regulator_desc, which is used for refcounting.
Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Message-Id: <20210524123735.2363676-1-axel.lin@ingics.com>
Signed-off-by: default avatarMark Brown <broonie@sirena.org.uk>
parent 15413ce5
...@@ -108,6 +108,7 @@ static const struct regulator_desc rt4831_regulator_descs[] = { ...@@ -108,6 +108,7 @@ static const struct regulator_desc rt4831_regulator_descs[] = {
.bypass_reg = RT4831_REG_DSVEN, .bypass_reg = RT4831_REG_DSVEN,
.bypass_val_on = DSV_MODE_BYPASS, .bypass_val_on = DSV_MODE_BYPASS,
.bypass_val_off = DSV_MODE_NORMAL, .bypass_val_off = DSV_MODE_NORMAL,
.owner = THIS_MODULE,
}, },
{ {
.name = "DSVP", .name = "DSVP",
...@@ -125,6 +126,7 @@ static const struct regulator_desc rt4831_regulator_descs[] = { ...@@ -125,6 +126,7 @@ static const struct regulator_desc rt4831_regulator_descs[] = {
.enable_mask = RT4831_POSEN_MASK, .enable_mask = RT4831_POSEN_MASK,
.active_discharge_reg = RT4831_REG_DSVEN, .active_discharge_reg = RT4831_REG_DSVEN,
.active_discharge_mask = RT4831_POSADEN_MASK, .active_discharge_mask = RT4831_POSADEN_MASK,
.owner = THIS_MODULE,
}, },
{ {
.name = "DSVN", .name = "DSVN",
...@@ -142,6 +144,7 @@ static const struct regulator_desc rt4831_regulator_descs[] = { ...@@ -142,6 +144,7 @@ static const struct regulator_desc rt4831_regulator_descs[] = {
.enable_mask = RT4831_NEGEN_MASK, .enable_mask = RT4831_NEGEN_MASK,
.active_discharge_reg = RT4831_REG_DSVEN, .active_discharge_reg = RT4831_REG_DSVEN,
.active_discharge_mask = RT4831_NEGADEN_MASK, .active_discharge_mask = RT4831_NEGADEN_MASK,
.owner = THIS_MODULE,
} }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment