Patch "OPP: ti: Fix ti_opp_supply_probe wrong return values" has been added to the 6.10-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    OPP: ti: Fix ti_opp_supply_probe wrong return values

to the 6.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     opp-ti-fix-ti_opp_supply_probe-wrong-return-values.patch
and it can be found in the queue-6.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit c29593fbfc644b574bc73ba4a44f1322536542f1
Author: Primoz Fiser <primoz.fiser@xxxxxxxxx>
Date:   Thu Jun 6 09:01:27 2024 +0200

    OPP: ti: Fix ti_opp_supply_probe wrong return values
    
    [ Upstream commit 3a1ac6b8f603a9310274990a0ad563a5fb709f59 ]
    
    Function ti_opp_supply_probe() since commit 6baee034cb55 ("OPP: ti:
    Migrate to dev_pm_opp_set_config_regulators()") returns wrong values
    when all goes well and hence driver probing eventually fails.
    
    Fixes: 6baee034cb55 ("OPP: ti: Migrate to dev_pm_opp_set_config_regulators()")
    Signed-off-by: Primoz Fiser <primoz.fiser@xxxxxxxxx>
    Signed-off-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/opp/ti-opp-supply.c b/drivers/opp/ti-opp-supply.c
index e3b97cd1fbbf3..ec0056a4bb135 100644
--- a/drivers/opp/ti-opp-supply.c
+++ b/drivers/opp/ti-opp-supply.c
@@ -393,10 +393,12 @@ static int ti_opp_supply_probe(struct platform_device *pdev)
 	}
 
 	ret = dev_pm_opp_set_config_regulators(cpu_dev, ti_opp_config_regulators);
-	if (ret < 0)
+	if (ret < 0) {
 		_free_optimized_voltages(dev, &opp_data);
+		return ret;
+	}
 
-	return ret;
+	return 0;
 }
 
 static struct platform_driver ti_opp_supply_driver = {




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux