From: Patrick Delaunay Date: Tue, 27 May 2025 13:27:49 +0000 (+0200) Subject: clk: fixed_rate: configure clock ID with CONFIG_CLK_AUTO_ID X-Git-Tag: v2025.10-rc1~118^2~30^2~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64b07829f7cd58546f3a0b537b1b0a9d7efddee7;p=thirdparty%2Fu-boot.git clk: fixed_rate: configure clock ID with CONFIG_CLK_AUTO_ID Update CLK ID to avoid 0 id, used for dummy clock with CCF and to allow selection by clk_get_by_id, used to get private data associated to the UCLASS_CLK device Signed-off-by: Patrick Delaunay Signed-off-by: Patrice Chotard Cc: Lukasz Majewski Cc: Sean Anderson Reviewed-by: Patrick Delaunay Reviewed-by: Patrice Chotard --- diff --git a/drivers/clk/clk_fixed_rate.c b/drivers/clk/clk_fixed_rate.c index d1da05cc18a..95a77d2e041 100644 --- a/drivers/clk/clk_fixed_rate.c +++ b/drivers/clk/clk_fixed_rate.c @@ -44,6 +44,7 @@ void clk_fixed_rate_ofdata_to_plat_(struct udevice *dev, dev_set_uclass_priv(dev, clk); clk->dev = dev; + clk->id = CLK_ID(dev, 0); clk->enable_count = 0; }