ath79: gpio-rb91x-key: use devm for mutex_init
authorRosen Penev <rosenp@gmail.com>
Fri, 4 Oct 2024 20:20:13 +0000 (13:20 -0700)
committerRobert Marko <robimarko@gmail.com>
Tue, 8 Oct 2024 17:35:56 +0000 (19:35 +0200)
commit084665698b113811c8c9017631068dc3e452efa4
treedeba03664edc22d1db720862a18e8c1f7752f497
parenta35bfa68d3609cd50a92bfc132d5618d05017442
ath79: gpio-rb91x-key: use devm for mutex_init

mutex_destroy is not called in any error paths or in _remove. Just use
devm to do so.

Removed a pointless platform_set_devdata call. Not needed with all of
the devm conversions.

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