diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-12-26 15:19:38 +0100 |
---|---|---|
committer | Bartosz Golaszewski <brgl@bgdev.pl> | 2022-01-03 10:43:00 +0100 |
commit | 01d130a31adeeee09fb27294751e2adad2100c50 (patch) | |
tree | 0f166d1e31566586cda51ca5d7fe63703f49b4a2 /drivers/gpio/gpio-max3191x.c | |
parent | gpio: regmap: Switch to use fwnode instead of of_node (diff) | |
download | linux-01d130a31adeeee09fb27294751e2adad2100c50.tar.xz linux-01d130a31adeeee09fb27294751e2adad2100c50.zip |
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: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Diffstat (limited to 'drivers/gpio/gpio-max3191x.c')
-rw-r--r-- | drivers/gpio/gpio-max3191x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-max3191x.c b/drivers/gpio/gpio-max3191x.c index 310d1a248cae..51cd6f98d1c7 100644 --- a/drivers/gpio/gpio-max3191x.c +++ b/drivers/gpio/gpio-max3191x.c @@ -326,7 +326,7 @@ static void gpiod_set_array_single_value_cansleep(unsigned int ndescs, bitmap_zero(values, ndescs); gpiod_set_array_value_cansleep(ndescs, desc, info, values); - kfree(values); + bitmap_free(values); } static struct gpio_descs *devm_gpiod_get_array_optional_count( |