History

firmware: xilinx: Remove eemi ops for get_api_version

Use direct function calls instead of using eemi ops. So remove eemi ops for get_api_version and use direct function call.

Rajan Vaja committed 6 years ago

Commit b9b3a8b1 parent 7536ad84 files · +10 −6Browse files

Showing the changes to include/linux (1 of 4 files). Show all

Unified · Split

include/linux/firmware/xlnx-zynqmp.h+5−1
@@ -294,7 +294,6 @@ struct zynqmp_pm_query_data { · 293 unmodified lines
294294 };
295295
296296 struct zynqmp_eemi_ops {
297− int (*get_api_version)(u32 *version);
298297 int (*get_chipid)(u32 *idcode, u32 *version);
299298 int (*fpga_load)(const u64 address, const u32 size, const u32 flags);
300299 int (*fpga_get_status)(u32 *value);
@@ -331,11 +330,16 @@ int zynqmp_pm_invoke_fn(u32 pm_api_id, u32 arg0, u32 arg1, · 30 unmodified lines
331330
332331 #if IS_REACHABLE(CONFIG_ZYNQMP_FIRMWARE)
333332 const struct zynqmp_eemi_ops *zynqmp_pm_get_eemi_ops(void);
333+int zynqmp_pm_get_api_version(u32 *version);
334334 #else
335335 static inline struct zynqmp_eemi_ops *zynqmp_pm_get_eemi_ops(void)
336336 {
337337 return ERR_PTR(-ENODEV);
338338 }
339+static inline int zynqmp_pm_get_api_version(u32 *version)
340+{
341+ return -ENODEV;
342+}
339343 #endif
340344
341345 #endif /* __FIRMWARE_ZYNQMP_H__ */