diff options
-rw-r--r-- | drivers/regulator/tps65090-regulator.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/regulator/tps65090-regulator.c b/drivers/regulator/tps65090-regulator.c index 2057e2e311de..2064b3fd45f7 100644 --- a/drivers/regulator/tps65090-regulator.c +++ b/drivers/regulator/tps65090-regulator.c | |||
@@ -431,8 +431,11 @@ static int tps65090_regulator_probe(struct platform_device *pdev) | |||
431 | ri = &pmic[num]; | 431 | ri = &pmic[num]; |
432 | ri->dev = &pdev->dev; | 432 | ri->dev = &pdev->dev; |
433 | ri->desc = &tps65090_regulator_desc[num]; | 433 | ri->desc = &tps65090_regulator_desc[num]; |
434 | ri->overcurrent_wait_valid = tps_pdata->overcurrent_wait_valid; | 434 | if (tps_pdata) { |
435 | ri->overcurrent_wait = tps_pdata->overcurrent_wait; | 435 | ri->overcurrent_wait_valid = |
436 | tps_pdata->overcurrent_wait_valid; | ||
437 | ri->overcurrent_wait = tps_pdata->overcurrent_wait; | ||
438 | } | ||
436 | 439 | ||
437 | /* | 440 | /* |
438 | * TPS5090 DCDC support the control from external digital input. | 441 | * TPS5090 DCDC support the control from external digital input. |