backports: add request_firmware_direct()
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 10 Jul 2014 20:34:49 +0000 (22:34 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 23 Jul 2014 21:29:04 +0000 (23:29 +0200)
request_firmware_direct() was newly added and in some places it is
better to use request_firmware_direct(), but request_firmware() will
also work and result in 60 seconds waiting if the file is not there in
some situations.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backport/backport-include/linux/firmware.h [new file with mode: 0644]

diff --git a/backport/backport-include/linux/firmware.h b/backport/backport-include/linux/firmware.h
new file mode 100644 (file)
index 0000000..4635512
--- /dev/null
@@ -0,0 +1,9 @@
+#ifndef __BACKPORT_LINUX_FIRMWARE_H
+#define __BACKPORT_LINUX_FIRMWARE_H
+#include_next <linux/firmware.h>
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,14,0)
+#define request_firmware_direct(fw, name, device) request_firmware(fw, name, device)
+#endif
+
+#endif /* __BACKPORT_LINUX_FIRMWARE_H */