realtek: rtl83xx: use devm for mutex_init
authorRosen Penev <rosenp@gmail.com>
Sun, 10 Nov 2024 23:54:14 +0000 (15:54 -0800)
committerRobert Marko <robimarko@gmail.com>
Tue, 12 Nov 2024 10:19:52 +0000 (11:19 +0100)
commit1125ed408c7f0d130b5606ab39e4dd98a41d5f0a
tree4cb1f5dedde5fe32433d235b42fff3b887b4f3a0
parentbe3e7a84bd37f29e14e4c6a89b8c79bc9808c36c
realtek: rtl83xx: use devm for mutex_init

mutex_destroy is missing in remove.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16926
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.6/drivers/net/dsa/rtl83xx/common.c