diff options
author | Felix Fietkau <nbd@nbd.name> | 2018-09-06 08:57:50 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2018-09-10 08:55:03 +0200 |
commit | 8910ef3c16910d63ade2ecf184cf01be487d70ea (patch) | |
tree | 7b724f0b23eca9e079ec9477f298148ab0b9dd9f /backport | |
parent | 295e9ea3499e9e30241a70babb37fc9e235ee204 (diff) |
backport: add firmware_request_nowarn and firmware_request_cache
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'backport')
-rw-r--r-- | backport/backport-include/linux/firmware.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/backport/backport-include/linux/firmware.h b/backport/backport-include/linux/firmware.h index 186eec3e..b5bc16be 100644 --- a/backport/backport-include/linux/firmware.h +++ b/backport/backport-include/linux/firmware.h @@ -5,5 +5,16 @@ #if LINUX_VERSION_IS_LESS(3,14,0) #define request_firmware_direct(fw, name, device) request_firmware(fw, name, device) #endif +#if LINUX_VERSION_IS_LESS(4,18,0) +#define firmware_request_nowarn(fw, name, device) request_firmware(fw, name, device) +#endif + +#if LINUX_VERSION_IS_LESS(4,17,0) +#define firmware_request_cache LINUX_BACKPORT(firmware_request_cache) +static inline int firmware_request_cache(struct device *device, const char *name) +{ + return 0; +} +#endif #endif /* __BACKPORT_LINUX_FIRMWARE_H */ |