Commit 6c814b67 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown

regulator: fan53880: 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>
Link: https://lore.kernel.org/r/20200706080944.663750-1-axel.lin@ingics.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 643ddb61
...@@ -45,6 +45,7 @@ static const struct regulator_ops fan53880_ops = { ...@@ -45,6 +45,7 @@ static const struct regulator_ops fan53880_ops = {
.of_match = of_match_ptr("LDO"#_num), \ .of_match = of_match_ptr("LDO"#_num), \
.regulators_node = of_match_ptr("regulators"), \ .regulators_node = of_match_ptr("regulators"), \
.type = REGULATOR_VOLTAGE, \ .type = REGULATOR_VOLTAGE, \
.owner = THIS_MODULE, \
.linear_ranges = (struct linear_range[]) { \ .linear_ranges = (struct linear_range[]) { \
REGULATOR_LINEAR_RANGE(_default, 0x0, 0x0, 0), \ REGULATOR_LINEAR_RANGE(_default, 0x0, 0x0, 0), \
REGULATOR_LINEAR_RANGE(800000, 0xf, 0x73, 25000), \ REGULATOR_LINEAR_RANGE(800000, 0xf, 0x73, 25000), \
...@@ -69,6 +70,7 @@ static const struct regulator_desc fan53880_regulators[] = { ...@@ -69,6 +70,7 @@ static const struct regulator_desc fan53880_regulators[] = {
.of_match = of_match_ptr("BUCK"), .of_match = of_match_ptr("BUCK"),
.regulators_node = of_match_ptr("regulators"), .regulators_node = of_match_ptr("regulators"),
.type = REGULATOR_VOLTAGE, .type = REGULATOR_VOLTAGE,
.owner = THIS_MODULE,
.linear_ranges = (struct linear_range[]) { .linear_ranges = (struct linear_range[]) {
REGULATOR_LINEAR_RANGE(1100000, 0x0, 0x0, 0), REGULATOR_LINEAR_RANGE(1100000, 0x0, 0x0, 0),
REGULATOR_LINEAR_RANGE(600000, 0x1f, 0xf7, 12500), REGULATOR_LINEAR_RANGE(600000, 0x1f, 0xf7, 12500),
...@@ -87,6 +89,7 @@ static const struct regulator_desc fan53880_regulators[] = { ...@@ -87,6 +89,7 @@ static const struct regulator_desc fan53880_regulators[] = {
.of_match = of_match_ptr("BOOST"), .of_match = of_match_ptr("BOOST"),
.regulators_node = of_match_ptr("regulators"), .regulators_node = of_match_ptr("regulators"),
.type = REGULATOR_VOLTAGE, .type = REGULATOR_VOLTAGE,
.owner = THIS_MODULE,
.linear_ranges = (struct linear_range[]) { .linear_ranges = (struct linear_range[]) {
REGULATOR_LINEAR_RANGE(5000000, 0x0, 0x0, 0), REGULATOR_LINEAR_RANGE(5000000, 0x0, 0x0, 0),
REGULATOR_LINEAR_RANGE(3000000, 0x4, 0x70, 25000), REGULATOR_LINEAR_RANGE(3000000, 0x4, 0x70, 25000),
......
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