Skip to content

Commit

Permalink
Merge remote-tracking branches 'regulator/fix/resume' and 'regulator/…
Browse files Browse the repository at this point in the history
…fix/stm32-vfrefbuf' into regulator-linus
  • Loading branch information
Mark Brown committed Mar 7, 2018
3 parents 661e50b + 35b5f14 + f63248f commit 82a917c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/regulator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -4310,7 +4310,7 @@ static int _regulator_resume_early(struct device *dev, void *data)

rstate = regulator_get_suspend_state(rdev, *state);
if (rstate == NULL)
return -EINVAL;
return 0;

mutex_lock(&rdev->mutex);

Expand Down
2 changes: 1 addition & 1 deletion drivers/regulator/stm32-vrefbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static int stm32_vrefbuf_enable(struct regulator_dev *rdev)
* arbitrary timeout.
*/
ret = readl_poll_timeout(priv->base + STM32_VREFBUF_CSR, val,
!(val & STM32_VRR), 650, 10000);
val & STM32_VRR, 650, 10000);
if (ret) {
dev_err(&rdev->dev, "stm32 vrefbuf timed out!\n");
val = readl_relaxed(priv->base + STM32_VREFBUF_CSR);
Expand Down

0 comments on commit 82a917c

Please sign in to comment.