regmap: destroy mutex (if used) in regmap_exit()
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 28 Sep 2020 12:06:14 +0000 (14:06 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 28 Sep 2020 17:28:45 +0000 (18:28 +0100)
commitf74d63b8c24ad90ee56b5723b72feb0d1f894177
tree7e1d7e33c277f65b527069db72e44e92a5c1a8c9
parent1d512ee861b80da63cbc501b973c53131aa22f29
regmap: destroy mutex (if used) in regmap_exit()

While not destroying mutexes doesn't lead to memory leaks, it's still
the correct thing to do for mutex debugging accounting.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Link: https://lore.kernel.org/r/20200928120614.23172-1-brgl@bgdev.pl
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap.c