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>
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;