realtek: rtl83xx: use devm for mutex_init
authorRosen Penev <rosenp@gmail.com>
Sun, 10 Nov 2024 23:54:14 +0000 (15:54 -0800)
committerPetr Štetiar <ynezz@true.cz>
Thu, 28 Nov 2024 18:46:55 +0000 (18:46 +0000)
commit655874713ee32f5f16f038c4291b02da3a018b76
treeef581aae1534f198905bebcbef3aaa8893b09c71
parent96ab90a9aa75c06fd85cb94babe12b8cb49e32ce
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>
(cherry picked from commit 1125ed408c7f0d130b5606ab39e4dd98a41d5f0a)
Link: https://github.com/openwrt/openwrt/pull/17097
Signed-off-by: Petr Štetiar <ynezz@true.cz>
target/linux/realtek/files-6.6/drivers/net/dsa/rtl83xx/common.c