wcn36xx: Cache nv to avoid request_firmware on resume path
[deliverable/linux.git] / drivers / net / wireless / ath / wcn36xx / main.c
index e64a6784079e20446ad57078f607e0f01b7565a1..a801aaa760379ec211aac264bd1eb3d01b4d969c 100644 (file)
@@ -17,6 +17,7 @@
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
 #include <linux/module.h>
+#include <linux/firmware.h>
 #include <linux/platform_device.h>
 #include "wcn36xx.h"
 
@@ -992,6 +993,7 @@ static int wcn36xx_remove(struct platform_device *pdev)
        struct wcn36xx *wcn = hw->priv;
        wcn36xx_dbg(WCN36XX_DBG_MAC, "platform remove\n");
 
+       release_firmware(wcn->nv);
        mutex_destroy(&wcn->hal_mutex);
 
        ieee80211_unregister_hw(hw);
This page took 0.024854 seconds and 5 git commands to generate.