VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   35 Branches   59 Tags
author: Tony Lindgren <tony@atomide.com> 2021-08-11 08:34:46 +0300 committer: Sasha Levin <sashal@kernel.org> 2021-08-26 08:35:04 -0400 commit: dcd6c72344f3bb7584bdd31d5739e010c6c79b53 parent: 8a821b88b1a66c48f5ee8be1b39b6b4ff0cad1c6
Commit Summary:
bus: ti-sysc: Fix error handling for sysc_check_active_timer()
Diffstat:
1 file changed, 3 insertions, 1 deletion
diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c
index 0ef98e3ba341..148a4dd8cb9a 100644
--- a/drivers/bus/ti-sysc.c
+++ b/drivers/bus/ti-sysc.c
@@ -3097,8 +3097,10 @@ static int sysc_probe(struct platform_device *pdev)
 		return error;
 
 	error = sysc_check_active_timer(ddata);
-	if (error == -EBUSY)
+	if (error == -ENXIO)
 		ddata->reserved = true;
+	else if (error)
+		return error;
 
 	error = sysc_get_clocks(ddata);
 	if (error)