i2c: geni: fix error message wording in clk_disable
authorCasey Connolly <casey.connolly@linaro.org>
Mon, 14 Jul 2025 13:13:13 +0000 (15:13 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 30 Oct 2025 17:04:51 +0000 (11:04 -0600)
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>
drivers/i2c/geni_i2c.c

index eabf5c7..4eb41ba 100644 (file)
@@ -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;