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 | struct zynqmp_eemi_ops { | 296 | struct zynqmp_eemi_ops { |
| 297 | int (*get_api_version)(u32 *version); | ||
| 298 | int (*get_chipid)(u32 *idcode, u32 *version); | 297 | int (*get_chipid)(u32 *idcode, u32 *version); |
| 299 | int (*fpga_load)(const u64 address, const u32 size, const u32 flags); | 298 | int (*fpga_load)(const u64 address, const u32 size, const u32 flags); |
| 300 | int (*fpga_get_status)(u32 *value); | 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 | #if IS_REACHABLE(CONFIG_ZYNQMP_FIRMWARE) | 331 | #if IS_REACHABLE(CONFIG_ZYNQMP_FIRMWARE) |
| 333 | const struct zynqmp_eemi_ops *zynqmp_pm_get_eemi_ops(void); | 332 | const struct zynqmp_eemi_ops *zynqmp_pm_get_eemi_ops(void); |
| 333 | int zynqmp_pm_get_api_version(u32 *version); | ||
| 334 | #else | 334 | #else |
| 335 | static inline struct zynqmp_eemi_ops *zynqmp_pm_get_eemi_ops(void) | 335 | static inline struct zynqmp_eemi_ops *zynqmp_pm_get_eemi_ops(void) |
| 336 | { | 336 | { |
| 337 | return ERR_PTR(-ENODEV); | 337 | return ERR_PTR(-ENODEV); |
| 338 | } | 338 | } |
| 339 | static inline int zynqmp_pm_get_api_version(u32 *version) | ||
| 340 | { | ||
| 341 | return -ENODEV; | ||
| 342 | } | ||
| 339 | #endif | 343 | #endif |
| 340 | 344 | ||
| 341 | #endif /* __FIRMWARE_ZYNQMP_H__ */ | 345 | #endif /* __FIRMWARE_ZYNQMP_H__ */ |