mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-05 12:46:14 +02:00
i2c: geni: fix error message wording in clk_disable
Correct the error messages so they accurately describe that we failed to disable the clocks, not to enable them. Signed-off-by: Casey Connolly <casey.connolly@linaro.org> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://patch.msgid.link/20250714-geni-load-fw-v5-2-5abbc0d29838@linaro.org Signed-off-by: Casey Connolly <kcxt@postmarketos.org>
This commit is contained in:
parent
ada314a7ca
commit
f3e73dc94b
@ -331,15 +331,13 @@ static int geni_i2c_disable_clocks(struct udevice *dev, struct geni_i2c_priv *ge
|
||||
if (geni->is_master_hub) {
|
||||
ret = clk_disable(&geni->core);
|
||||
if (ret) {
|
||||
dev_err(dev, "clk_enable core failed %d\n", ret);
|
||||
return ret;
|
||||
dev_err(dev, "clk_disable core failed %d\n", ret);
|
||||
}
|
||||
}
|
||||
|
||||
ret = clk_disable(&geni->se);
|
||||
if (ret) {
|
||||
dev_err(dev, "clk_enable se failed %d\n", ret);
|
||||
return ret;
|
||||
dev_err(dev, "clk_disable se failed %d\n", ret);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user