scmi_generic_protocol_version() request is done twice in scmi_clk_probe().
Remove first call which is useless.

Fixes: ae7e0330ce22 ("clk: scmi: add compatibility with clock protocol 2.0")

Signed-off-by: Patrice Chotard <[email protected]>

Cc: Alice Guo <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Sean Anderson <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Valentin Caron <[email protected]>
Cc: Vinh Nguyen <[email protected]>
Cc: [email protected]
Reviewed-by: Peng Fan <[email protected]>
---
 drivers/clk/clk_scmi.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/clk/clk_scmi.c b/drivers/clk/clk_scmi.c
index 3dcb18a7664..9f311b6118f 100644
--- a/drivers/clk/clk_scmi.c
+++ b/drivers/clk/clk_scmi.c
@@ -343,9 +343,6 @@ static int scmi_clk_probe(struct udevice *dev)
        if (!CONFIG_IS_ENABLED(CLK_CCF))
                return 0;
 
-       ret = scmi_generic_protocol_version(dev, SCMI_PROTOCOL_ID_CLOCK,
-                                           &priv->version);
-
        /* register CCF children: CLK UCLASS, no probed again */
        if (device_get_uclass_id(dev->parent) == UCLASS_CLK)
                return 0;

-- 
2.43.0

Reply via email to