--- zzzz-none-000/linux-3.10.107/include/linux/firmware.h 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/include/linux/firmware.h 2021-02-04 17:41:59.000000000 +0000 @@ -45,10 +45,10 @@ struct module *module, bool uevent, const char *name, struct device *device, gfp_t gfp, void *context, void (*cont)(const struct firmware *fw, void *context)); +int request_firmware_direct(const struct firmware **fw, const char *name, + struct device *device); void release_firmware(const struct firmware *fw); -int cache_firmware(const char *name); -int uncache_firmware(const char *name); #else static inline int request_firmware(const struct firmware **fw, const char *name, @@ -68,15 +68,12 @@ { } -static inline int cache_firmware(const char *name) -{ - return -ENOENT; -} - -static inline int uncache_firmware(const char *name) +static inline int request_firmware_direct(const struct firmware **fw, + const char *name, + struct device *device) { return -EINVAL; } -#endif #endif +#endif