mmc: pwrseq: Use bitmap_free() to free bitmap
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 26 Dec 2021 14:15:36 +0000 (15:15 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 28 Dec 2021 16:53:42 +0000 (17:53 +0100)
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>
drivers/mmc/core/pwrseq_simple.c

index ea4d3670560ea9c18738dd6272dc4d62c243d492..988467fbb62140d7dd9fa7bc2f2ae6241a39e66a 100644 (file)
@@ -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);
        }
 }