aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-03-19 16:18:30 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2015-03-19 16:18:30 -0700
commit32dafb94a619ef7e62a23e3e3646d0ba0107de32 (patch)
treebad98051f86bb91ff54b1eddf32ada0dbbdde7e1 /drivers
parentMerge tag 'pinctrl-v4.0-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl (diff)
parentmmc: pwrseq_simple: fix error path in mmc_pwrseq_simple_alloc (diff)
downloadlinux-dev-32dafb94a619ef7e62a23e3e3646d0ba0107de32.tar.xz
linux-dev-32dafb94a619ef7e62a23e3e3646d0ba0107de32.zip
Merge tag 'mmc-v4.0-rc4' of git://git.linaro.org/people/ulf.hansson/mmc
Pull MMC fix from Ulf Hansson: "MMC core: fix error path in mmc_pwrseq_simple_alloc()" * tag 'mmc-v4.0-rc4' of git://git.linaro.org/people/ulf.hansson/mmc: mmc: pwrseq_simple: fix error path in mmc_pwrseq_simple_alloc
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/core/pwrseq_simple.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/core/pwrseq_simple.c b/drivers/mmc/core/pwrseq_simple.c
index e9f1d8d84613..c53f14a7ce54 100644
--- a/drivers/mmc/core/pwrseq_simple.c
+++ b/drivers/mmc/core/pwrseq_simple.c
@@ -124,7 +124,7 @@ int mmc_pwrseq_simple_alloc(struct mmc_host *host, struct device *dev)
PTR_ERR(pwrseq->reset_gpios[i]) != -ENOSYS) {
ret = PTR_ERR(pwrseq->reset_gpios[i]);
- while (--i)
+ while (i--)
gpiod_put(pwrseq->reset_gpios[i]);
goto clk_put;