diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2014-09-14 09:34:38 -0400 |
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2014-09-14 09:35:36 -0400 |
| commit | db985cbd67c45f875ef43cb5febfaa8cbd203c27 (patch) | |
| tree | 63542d05b1c0f730ec1ad5f915dc4eb3c015e616 /include/linux/firmware.h | |
| parent | c6f1224573c3b609bd8073b39f496637a16cc06f (diff) | |
| parent | 468a903c0e5147e3f93187f0b808a3ef957fd00e (diff) | |
Merge tag 'irqchip-core-3.18' of git://git.infradead.org/users/jcooper/linux into irq/core
irqchip core changes for v3.18
- renesas: suspend to RAM, runtime PM, cleanups and DT binding docs
- keystone: add new driver
- hip04: add Hisilicon HiP04 driver (without touching irq-gic.c)
- gic: Use defines instead of magic number, preserve v2 bybass bits
- handle_domain_irq: common low level interrupt entry handler
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 |
