]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
clk: scmi: Remove duplicated scmi_generic_protocol_version() request
authorPatrice Chotard <patrice.chotard@foss.st.com>
Thu, 18 Dec 2025 17:27:03 +0000 (18:27 +0100)
committerPeng Fan <peng.fan@nxp.com>
Mon, 5 Jan 2026 02:04:48 +0000 (10:04 +0800)
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")
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/clk/clk_scmi.c

index a4fc4f8da89d5ef3722228fef3881a162ff01a29..ee237ed6337c71afb26993c84bdca69ebfa05e36 100644 (file)
@@ -344,9 +344,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;