Commit 01d130a3 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Bartosz Golaszewski

gpio: max3191x: 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: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarBartosz Golaszewski <brgl@bgdev.pl>
parent f21ecad4
...@@ -326,7 +326,7 @@ static void gpiod_set_array_single_value_cansleep(unsigned int ndescs, ...@@ -326,7 +326,7 @@ static void gpiod_set_array_single_value_cansleep(unsigned int ndescs,
bitmap_zero(values, ndescs); bitmap_zero(values, ndescs);
gpiod_set_array_value_cansleep(ndescs, desc, info, values); gpiod_set_array_value_cansleep(ndescs, desc, info, values);
kfree(values); bitmap_free(values);
} }
static struct gpio_descs *devm_gpiod_get_array_optional_count( static struct gpio_descs *devm_gpiod_get_array_optional_count(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment