]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: rtw89: remove definition of driver mutex
authorPing-Ke Shih <pkshih@realtek.com>
Wed, 22 Jan 2025 06:03:09 +0000 (14:03 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Mon, 3 Feb 2025 02:28:57 +0000 (10:28 +0800)
No consumers of driver mutex now, so remove definition eventually.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20250122060310.31976-10-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.c
drivers/net/wireless/realtek/rtw89/core.h

index 4e6d117439a5f08c535cfa7508704a0a5d9265cb..559191a49c5a4b92979b7ad775afd50eb90389e2 100644 (file)
@@ -4831,7 +4831,6 @@ int rtw89_core_init(struct rtw89_dev *rtwdev)
                return -ENOMEM;
        spin_lock_init(&rtwdev->ba_lock);
        spin_lock_init(&rtwdev->rpwm_lock);
-       mutex_init(&rtwdev->mutex);
        mutex_init(&rtwdev->rf_mutex);
        rtwdev->total_sta_assoc = 0;
 
@@ -4890,7 +4889,6 @@ void rtw89_core_deinit(struct rtw89_dev *rtwdev)
 
        destroy_workqueue(rtwdev->txq_wq);
        mutex_destroy(&rtwdev->rf_mutex);
-       mutex_destroy(&rtwdev->mutex);
 }
 EXPORT_SYMBOL(rtw89_core_deinit);
 
index 6970e4d4e73faefb04abd496e535147eb7e0b646..61fe2705cac6c168e8bce0ca27c2cd2a9736c4d5 100644 (file)
@@ -5653,8 +5653,6 @@ struct rtw89_dev {
        struct rtw89_sta_link __rcu *assoc_link_on_macid[RTW89_MAX_MAC_ID_NUM];
        refcount_t refcount_ap_info;
 
-       /* ensures exclusive access from mac80211 callbacks */
-       struct mutex mutex;
        struct list_head rtwvifs_list;
        /* used to protect rf read write */
        struct mutex rf_mutex;