aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/rt5190a-regulator.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/regulator/rt5190a-regulator.c')
-rw-r--r--drivers/regulator/rt5190a-regulator.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/regulator/rt5190a-regulator.c b/drivers/regulator/rt5190a-regulator.c
index 155d4afd00b1..4a3397b32582 100644
--- a/drivers/regulator/rt5190a-regulator.c
+++ b/drivers/regulator/rt5190a-regulator.c
@@ -224,6 +224,9 @@ static int rt5190a_of_parse_cb(struct rt5190a_priv *priv, int rid,
bool latchup_enable;
unsigned int mask = RT5190A_RID_BITMASK(rid), val;
+ if (!init_data)
+ return 0;
+
switch (rid) {
case RT5190A_IDX_BUCK1:
case RT5190A_IDX_BUCK4: