diff options
Diffstat (limited to 'include/linux/firmware.h')
| -rw-r--r-- | include/linux/firmware.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/include/linux/firmware.h b/include/linux/firmware.h index 59529330efd6..5c41c5e75b5c 100644 --- a/include/linux/firmware.h +++ b/include/linux/firmware.h | |||
| @@ -45,6 +45,8 @@ int request_firmware_nowait( | |||
| 45 | struct module *module, bool uevent, | 45 | struct module *module, bool uevent, |
| 46 | const char *name, struct device *device, gfp_t gfp, void *context, | 46 | const char *name, struct device *device, gfp_t gfp, void *context, |
| 47 | void (*cont)(const struct firmware *fw, void *context)); | 47 | void (*cont)(const struct firmware *fw, void *context)); |
| 48 | int request_firmware_direct(const struct firmware **fw, const char *name, | ||
| 49 | struct device *device); | ||
| 48 | 50 | ||
| 49 | void release_firmware(const struct firmware *fw); | 51 | void release_firmware(const struct firmware *fw); |
| 50 | #else | 52 | #else |
| @@ -66,13 +68,12 @@ static inline void release_firmware(const struct firmware *fw) | |||
| 66 | { | 68 | { |
| 67 | } | 69 | } |
| 68 | 70 | ||
| 69 | #endif | 71 | static inline int request_firmware_direct(const struct firmware **fw, |
| 72 | const char *name, | ||
| 73 | struct device *device) | ||
| 74 | { | ||
| 75 | return -EINVAL; | ||
| 76 | } | ||
| 70 | 77 | ||
| 71 | #ifdef CONFIG_FW_LOADER_USER_HELPER | ||
| 72 | int request_firmware_direct(const struct firmware **fw, const char *name, | ||
| 73 | struct device *device); | ||
| 74 | #else | ||
| 75 | #define request_firmware_direct request_firmware | ||
| 76 | #endif | 78 | #endif |
| 77 | |||
| 78 | #endif | 79 | #endif |
