.. | .. |
---|
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 | 38 | void kill_pending_fw_fallback_reqs(bool only_kill_custom); |
---|
39 | 39 | |
---|
.. | .. |
---|
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 */ |
---|
.. | .. |
---|
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 */ |
---|