Use direct function calls instead of using eemi ops. So remove eemi ops for get_api_version and use direct function call.
Showing the changes to include/linux (1 of 4 files). Show all
Unified · Split
| @@ -294,7 +294,6 @@ struct zynqmp_pm_query_data { · 293 unmodified lines | ||
| 294 | 294 | }; |
| 295 | 295 | |
| 296 | 296 | struct zynqmp_eemi_ops { |
| 297 | − int (*get_api_version)(u32 *version); | |
| 298 | 297 | int (*get_chipid)(u32 *idcode, u32 *version); |
| 299 | 298 | int (*fpga_load)(const u64 address, const u32 size, const u32 flags); |
| 300 | 299 | 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 | ||
| 331 | 330 | |
| 332 | 331 | #if IS_REACHABLE(CONFIG_ZYNQMP_FIRMWARE) |
| 333 | 332 | const struct zynqmp_eemi_ops *zynqmp_pm_get_eemi_ops(void); |
| 333 | +int zynqmp_pm_get_api_version(u32 *version); | |
| 334 | 334 | #else |
| 335 | 335 | static inline struct zynqmp_eemi_ops *zynqmp_pm_get_eemi_ops(void) |
| 336 | 336 | { |
| 337 | 337 | return ERR_PTR(-ENODEV); |
| 338 | 338 | } |
| 339 | +static inline int zynqmp_pm_get_api_version(u32 *version) | |
| 340 | +{ | |
| 341 | + return -ENODEV; | |
| 342 | +} | |
| 339 | 343 | #endif |
| 340 | 344 | |
| 341 | 345 | #endif /* __FIRMWARE_ZYNQMP_H__ */ |