mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
clk: scmi: Remove duplicated scmi_generic_protocol_version() request
scmi_generic_protocol_version() request is done twice in scmi_clk_probe().
Remove first call which is useless.
Fixes: ae7e0330ce ("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>
This commit is contained in:
committed by
Peng Fan
parent
0e9055b148
commit
4c3aa5356d
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user