From: Quanyang Wang <[email protected]>

The args type and number of some functions are different between
CONFIG_ZYNQMP_FIRMWARE is enabled and disabled. Let's unify them
to avoid compile error.

Signed-off-by: Quanyang Wang <[email protected]>
---
 include/linux/firmware/xlnx-zynqmp.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/linux/firmware/xlnx-zynqmp.h 
b/include/linux/firmware/xlnx-zynqmp.h
index 5fdbc2ca62dc6..c97159856e30e 100644
--- a/include/linux/firmware/xlnx-zynqmp.h
+++ b/include/linux/firmware/xlnx-zynqmp.h
@@ -777,13 +777,13 @@ static inline int zynqmp_pm_sd_dll_reset(u32 node_id, u32 
type)
        return -ENODEV;
 }
 
-static inline int zynqmp_pm_reset_assert(const enum zynqmp_pm_reset reset,
+static inline int zynqmp_pm_reset_assert(const u32 reset,
                                         const enum zynqmp_pm_reset_action 
assert_flag)
 {
        return -ENODEV;
 }
 
-static inline int zynqmp_pm_reset_get_status(const enum zynqmp_pm_reset reset,
+static inline int zynqmp_pm_reset_get_status(const u32 reset,
                                             u32 *status)
 {
        return -ENODEV;
@@ -865,7 +865,7 @@ static inline int zynqmp_pm_read_pggs(u32 index, u32 *value)
        return -ENODEV;
 }
 
-static inline int zynqmp_pm_usb_set_state(u32 state, u32 value)
+static inline int zynqmp_pm_usb_set_state(u32 node, u32 state, u32 value)
 {
        return -ENODEV;
 }
@@ -1068,7 +1068,7 @@ static inline int zynqmp_pm_probe_counter_read(u32 
deviceid, u32 reg, u32 *value
        return -ENODEV;
 }
 
-static inline int zynqmp_pm_probe_counter_write(u32 reg, u32 value)
+static inline int zynqmp_pm_probe_counter_write(u32 domain, u32 reg, u32 value)
 {
        return -ENODEV;
 }
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#10099): 
https://lists.yoctoproject.org/g/linux-yocto/message/10099
Mute This Topic: https://lists.yoctoproject.org/mt/84148456/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to