Skip to content

Commit 6471435

Browse files
AxelLinLiam Girdwood
authored andcommitted
Regulators: ab3100/bq24022: add a missing .owner field in regulator_desc
This patch adds a missing .owner field in regulator_desc, which is used for refcounting. Signed-off-by: Axel Lin <[email protected]> Acked-by: Mark Brown <[email protected]> Signed-off-by: Liam Girdwood <[email protected]>
1 parent 3e3d3be commit 6471435

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

drivers/regulator/ab3100.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,66 +492,76 @@ ab3100_regulator_desc[AB3100_NUM_REGULATORS] = {
492492
.id = AB3100_LDO_A,
493493
.ops = &regulator_ops_fixed,
494494
.type = REGULATOR_VOLTAGE,
495+
.owner = THIS_MODULE,
495496
},
496497
{
497498
.name = "LDO_C",
498499
.id = AB3100_LDO_C,
499500
.ops = &regulator_ops_fixed,
500501
.type = REGULATOR_VOLTAGE,
502+
.owner = THIS_MODULE,
501503
},
502504
{
503505
.name = "LDO_D",
504506
.id = AB3100_LDO_D,
505507
.ops = &regulator_ops_fixed,
506508
.type = REGULATOR_VOLTAGE,
509+
.owner = THIS_MODULE,
507510
},
508511
{
509512
.name = "LDO_E",
510513
.id = AB3100_LDO_E,
511514
.ops = &regulator_ops_variable_sleepable,
512515
.n_voltages = ARRAY_SIZE(ldo_e_buck_typ_voltages),
513516
.type = REGULATOR_VOLTAGE,
517+
.owner = THIS_MODULE,
514518
},
515519
{
516520
.name = "LDO_F",
517521
.id = AB3100_LDO_F,
518522
.ops = &regulator_ops_variable,
519523
.n_voltages = ARRAY_SIZE(ldo_f_typ_voltages),
520524
.type = REGULATOR_VOLTAGE,
525+
.owner = THIS_MODULE,
521526
},
522527
{
523528
.name = "LDO_G",
524529
.id = AB3100_LDO_G,
525530
.ops = &regulator_ops_variable,
526531
.n_voltages = ARRAY_SIZE(ldo_g_typ_voltages),
527532
.type = REGULATOR_VOLTAGE,
533+
.owner = THIS_MODULE,
528534
},
529535
{
530536
.name = "LDO_H",
531537
.id = AB3100_LDO_H,
532538
.ops = &regulator_ops_variable,
533539
.n_voltages = ARRAY_SIZE(ldo_h_typ_voltages),
534540
.type = REGULATOR_VOLTAGE,
541+
.owner = THIS_MODULE,
535542
},
536543
{
537544
.name = "LDO_K",
538545
.id = AB3100_LDO_K,
539546
.ops = &regulator_ops_variable,
540547
.n_voltages = ARRAY_SIZE(ldo_k_typ_voltages),
541548
.type = REGULATOR_VOLTAGE,
549+
.owner = THIS_MODULE,
542550
},
543551
{
544552
.name = "LDO_EXT",
545553
.id = AB3100_LDO_EXT,
546554
.ops = &regulator_ops_external,
547555
.type = REGULATOR_VOLTAGE,
556+
.owner = THIS_MODULE,
548557
},
549558
{
550559
.name = "BUCK",
551560
.id = AB3100_BUCK,
552561
.ops = &regulator_ops_variable_sleepable,
553562
.n_voltages = ARRAY_SIZE(ldo_e_buck_typ_voltages),
554563
.type = REGULATOR_VOLTAGE,
564+
.owner = THIS_MODULE,
555565
},
556566
};
557567

drivers/regulator/bq24022.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ static struct regulator_desc bq24022_desc = {
7878
.name = "bq24022",
7979
.ops = &bq24022_ops,
8080
.type = REGULATOR_CURRENT,
81+
.owner = THIS_MODULE,
8182
};
8283

8384
static int __init bq24022_probe(struct platform_device *pdev)

0 commit comments

Comments
 (0)