regulator: max77650: Add missing .owner field in regulator_desc
authorAxel Lin <axel.lin@ingics.com>
Wed, 20 Feb 2019 01:53:28 +0000 (09:53 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 20 Feb 2019 16:46:41 +0000 (16:46 +0000)
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/max77650-regulator.c

index 5afb91400832a1326f77ab4ab03a18008a632b6f..411912d5278b1194df0971f060bf160b656e08e0 100644 (file)
@@ -319,6 +319,7 @@ static struct max77650_regulator_desc max77650_LDO_desc = {
                .active_discharge_reg   = MAX77650_REG_CNFG_LDO_B,
                .enable_time            = 100,
                .type                   = REGULATOR_VOLTAGE,
+               .owner                  = THIS_MODULE,
        },
        .regA           = MAX77650_REG_CNFG_LDO_A,
        .regB           = MAX77650_REG_CNFG_LDO_B,
@@ -343,6 +344,7 @@ static struct max77650_regulator_desc max77650_SBB0_desc = {
                .active_discharge_reg   = MAX77650_REG_CNFG_SBB0_B,
                .enable_time            = 100,
                .type                   = REGULATOR_VOLTAGE,
+               .owner                  = THIS_MODULE,
        },
        .regA           = MAX77650_REG_CNFG_SBB0_A,
        .regB           = MAX77650_REG_CNFG_SBB0_B,
@@ -367,6 +369,7 @@ static struct max77650_regulator_desc max77650_SBB1_desc = {
                .active_discharge_reg   = MAX77650_REG_CNFG_SBB1_B,
                .enable_time            = 100,
                .type                   = REGULATOR_VOLTAGE,
+               .owner                  = THIS_MODULE,
        },
        .regA           = MAX77650_REG_CNFG_SBB1_A,
        .regB           = MAX77650_REG_CNFG_SBB1_B,
@@ -390,6 +393,7 @@ static struct max77650_regulator_desc max77651_SBB1_desc = {
                .active_discharge_reg   = MAX77650_REG_CNFG_SBB1_B,
                .enable_time            = 100,
                .type                   = REGULATOR_VOLTAGE,
+               .owner                  = THIS_MODULE,
        },
        .regA           = MAX77650_REG_CNFG_SBB1_A,
        .regB           = MAX77650_REG_CNFG_SBB1_B,
@@ -414,6 +418,7 @@ static struct max77650_regulator_desc max77650_SBB2_desc = {
                .active_discharge_reg   = MAX77650_REG_CNFG_SBB2_B,
                .enable_time            = 100,
                .type                   = REGULATOR_VOLTAGE,
+               .owner                  = THIS_MODULE,
        },
        .regA           = MAX77650_REG_CNFG_SBB2_A,
        .regB           = MAX77650_REG_CNFG_SBB2_B,
@@ -438,6 +443,7 @@ static struct max77650_regulator_desc max77651_SBB2_desc = {
                .active_discharge_reg   = MAX77650_REG_CNFG_SBB2_B,
                .enable_time            = 100,
                .type                   = REGULATOR_VOLTAGE,
+               .owner                  = THIS_MODULE,
        },
        .regA           = MAX77650_REG_CNFG_SBB2_A,
        .regB           = MAX77650_REG_CNFG_SBB2_B,