| .. | .. |
|---|
| 33 | 33 | #ifdef CONFIG_FW_LOADER_USER_HELPER |
|---|
| 34 | 34 | int firmware_fallback_sysfs(struct firmware *fw, const char *name, |
|---|
| 35 | 35 | struct device *device, |
|---|
| 36 | | - enum fw_opt opt_flags, |
|---|
| 36 | + u32 opt_flags, |
|---|
| 37 | 37 | int ret); |
|---|
| 38 | | -void kill_pending_fw_fallback_reqs(bool only_kill_custom); |
|---|
| 38 | +void kill_pending_fw_fallback_reqs(bool kill_all); |
|---|
| 39 | 39 | |
|---|
| 40 | 40 | void fw_fallback_set_cache_timeout(void); |
|---|
| 41 | 41 | void fw_fallback_set_default_timeout(void); |
|---|
| .. | .. |
|---|
| 45 | 45 | #else /* CONFIG_FW_LOADER_USER_HELPER */ |
|---|
| 46 | 46 | static inline int firmware_fallback_sysfs(struct firmware *fw, const char *name, |
|---|
| 47 | 47 | struct device *device, |
|---|
| 48 | | - enum fw_opt opt_flags, |
|---|
| 48 | + u32 opt_flags, |
|---|
| 49 | 49 | int ret) |
|---|
| 50 | 50 | { |
|---|
| 51 | 51 | /* Keep carrying over the same error */ |
|---|
| 52 | 52 | return ret; |
|---|
| 53 | 53 | } |
|---|
| 54 | 54 | |
|---|
| 55 | | -static inline void kill_pending_fw_fallback_reqs(bool only_kill_custom) { } |
|---|
| 55 | +static inline void kill_pending_fw_fallback_reqs(bool kill_all) { } |
|---|
| 56 | 56 | static inline void fw_fallback_set_cache_timeout(void) { } |
|---|
| 57 | 57 | static inline void fw_fallback_set_default_timeout(void) { } |
|---|
| 58 | 58 | |
|---|
| .. | .. |
|---|
| 66 | 66 | } |
|---|
| 67 | 67 | #endif /* CONFIG_FW_LOADER_USER_HELPER */ |
|---|
| 68 | 68 | |
|---|
| 69 | +#ifdef CONFIG_EFI_EMBEDDED_FIRMWARE |
|---|
| 70 | +int firmware_fallback_platform(struct fw_priv *fw_priv); |
|---|
| 71 | +#else |
|---|
| 72 | +static inline int firmware_fallback_platform(struct fw_priv *fw_priv) |
|---|
| 73 | +{ |
|---|
| 74 | + return -ENOENT; |
|---|
| 75 | +} |
|---|
| 76 | +#endif |
|---|
| 77 | + |
|---|
| 69 | 78 | #endif /* __FIRMWARE_FALLBACK_H */ |
|---|