rtc: destroy mutex when releasing the device
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 10 Nov 2020 09:42:05 +0000 (10:42 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 19 Nov 2020 11:50:12 +0000 (12:50 +0100)
commit0d6d7a390b32ef23d957960d3bb8586a49d6af7c
treec22e45458b1976b93a90de573fcec5e759e9e9d4
parent1bfc485b73579bff5326ac481fd9be7e24a5d5d1
rtc: destroy mutex when releasing the device

Not destroying mutexes doesn't lead to resource leak but it's the correct
thing to do for mutex debugging accounting.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20201110094205.8972-1-brgl@bgdev.pl
drivers/rtc/class.c