summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2021-12-26 15:15:36 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2021-12-28 17:53:42 +0100
commit28df143340b5acb7003aa8a83d0910c112be0504 (patch)
tree92e925f4a930497b05785dd6ffa7717a08b4b1d3
parentdt-bindings: mmc: PL18x stop relying on order of dma-names (diff)
downloadlinux-28df143340b5acb7003aa8a83d0910c112be0504.tar.xz
linux-28df143340b5acb7003aa8a83d0910c112be0504.zip
mmc: pwrseq: Use bitmap_free() to free bitmap
kfree() and bitmap_free() are the same. But using the later is more consistent when freeing memory allocated with bitmap_alloc(). Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Link: https://lore.kernel.org/r/07a8e48db446888bd77f16b88568e80904f52103.1640528089.git.christophe.jaillet@wanadoo.fr Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-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 ea4d3670560e..988467fbb621 100644
--- a/drivers/mmc/core/pwrseq_simple.c
+++ b/drivers/mmc/core/pwrseq_simple.c
@@ -54,7 +54,7 @@ static void mmc_pwrseq_simple_set_gpios_value(struct mmc_pwrseq_simple *pwrseq,
gpiod_set_array_value_cansleep(nvalues, reset_gpios->desc,
reset_gpios->info, values);
- kfree(values);
+ bitmap_free(values);
}
}