Merge power-supply fixes for 6.6 cycle
[linux-2.6-microblaze.git] / drivers / power / supply / mt6370-charger.c
index 571cf00..e24fce0 100644 (file)
@@ -324,7 +324,7 @@ static int mt6370_chg_toggle_cfo(struct mt6370_priv *priv)
 
        if (fl_strobe) {
                dev_err(priv->dev, "Flash led is still in strobe mode\n");
-               return ret;
+               return -EINVAL;
        }
 
        /* cfo off */