summaryrefslogtreecommitdiffstats
path: root/drivers/base/firmware_loader/firmware.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-05-20 11:26:44 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-10 19:20:37 +0200
commit8f58570b98c090a4544ef9eaea1f419706672845 (patch)
treee958586927d02f85e2e05833b56d35434660efdc /drivers/base/firmware_loader/firmware.h
parentfirmware: Free temporary page table after vmapping (diff)
downloadlinux-8f58570b98c090a4544ef9eaea1f419706672845.tar.xz
linux-8f58570b98c090a4544ef9eaea1f419706672845.zip
firmware: Unify the paged buffer release helper
Use a common helper to release the paged buffer resources. This is rather a preparation for the upcoming decompression support. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/firmware_loader/firmware.h')
-rw-r--r--drivers/base/firmware_loader/firmware.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/base/firmware_loader/firmware.h b/drivers/base/firmware_loader/firmware.h
index 4c1395f8e7ed..d20d4e7f9e71 100644
--- a/drivers/base/firmware_loader/firmware.h
+++ b/drivers/base/firmware_loader/firmware.h
@@ -133,4 +133,10 @@ static inline void fw_state_done(struct fw_priv *fw_priv)
int assign_fw(struct firmware *fw, struct device *device,
enum fw_opt opt_flags);
+#ifdef CONFIG_FW_LOADER_USER_HELPER
+void fw_free_paged_buf(struct fw_priv *fw_priv);
+#else
+static inline void fw_free_paged_buf(struct fw_priv *fw_priv) {}
+#endif
+
#endif /* __FIRMWARE_LOADER_H */