aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/regulator/as3711-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/as3711-regulator.c b/drivers/regulator/as3711-regulator.c
index 2f1341db38a0..f0ba8c4eefa9 100644
--- a/drivers/regulator/as3711-regulator.c
+++ b/drivers/regulator/as3711-regulator.c
@@ -303,7 +303,7 @@ static int as3711_regulator_probe(struct platform_device *pdev)
303 reg_data = pdata ? pdata->init_data[id] : NULL; 303 reg_data = pdata ? pdata->init_data[id] : NULL;
304 304
305 /* No need to register if there is no regulator data */ 305 /* No need to register if there is no regulator data */
306 if (!ri->desc.name) 306 if (!reg_data)
307 continue; 307 continue;
308 308
309 reg = &regs[id]; 309 reg = &regs[id];