From: Hauke Mehrtens Date: Thu, 10 Jul 2014 20:34:49 +0000 (+0200) Subject: backports: add request_firmware_direct() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5401d846af449313418b95478a52f206803df365;p=openwrt%2Fstaging%2Fblogic.git backports: add request_firmware_direct() 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 --- diff --git a/backport/backport-include/linux/firmware.h b/backport/backport-include/linux/firmware.h new file mode 100644 index 000000000000..46355124d068 --- /dev/null +++ b/backport/backport-include/linux/firmware.h @@ -0,0 +1,9 @@ +#ifndef __BACKPORT_LINUX_FIRMWARE_H +#define __BACKPORT_LINUX_FIRMWARE_H +#include_next + +#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 */