diff options
-rw-r--r-- | drivers/regulator/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index ca8e1642538b..75a26f780918 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c | |||
@@ -1466,9 +1466,9 @@ EXPORT_SYMBOL_GPL(regulator_force_disable); | |||
1466 | 1466 | ||
1467 | static int _regulator_is_enabled(struct regulator_dev *rdev) | 1467 | static int _regulator_is_enabled(struct regulator_dev *rdev) |
1468 | { | 1468 | { |
1469 | /* sanity check */ | 1469 | /* If we don't know then assume that the regulator is always on */ |
1470 | if (!rdev->desc->ops->is_enabled) | 1470 | if (!rdev->desc->ops->is_enabled) |
1471 | return -EINVAL; | 1471 | return 1; |
1472 | 1472 | ||
1473 | return rdev->desc->ops->is_enabled(rdev); | 1473 | return rdev->desc->ops->is_enabled(rdev); |
1474 | } | 1474 | } |