ath79: gpio-rb4xx: use devm_mutex_init
authorRosen Penev <rosenp@gmail.com>
Thu, 3 Oct 2024 23:06:31 +0000 (16:06 -0700)
committerRobert Marko <robimarko@gmail.com>
Tue, 8 Oct 2024 17:34:38 +0000 (19:34 +0200)
commita35bfa68d3609cd50a92bfc132d5618d05017442
treee056145f356258d6a220d9215f67f5950d94a341
parentb37f3def8690f8b81e2fb058a130358514bf2f93
ath79: gpio-rb4xx: use devm_mutex_init

Also use devm for gpiochip_add_data.

Allows completely removing the _remove function.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16622
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/ath79/files/drivers/gpio/gpio-rb4xx.c