Skip to contentSkip to conversation

rtc-rtc-vr41xx-fix-error-return-code-in-rtc_probe.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jul 8, 2013 Real time clock (RTC)

lore
Share & tools
lore
#0 lore raw

Subject: [merged] rtc-rtc-vr41xx-fix-error-return-code-in-rtc_probe.patch removed from -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Mon, 08 Jul 2013 12:33:20 -0700

The patch titled
Subject: drivers/rtc/rtc-vr41xx.c: fix error return code in rtc_probe()
has been removed from the -mm tree. Its filename was
rtc-rtc-vr41xx-fix-error-return-code-in-rtc_probe.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Wei Yongjun <[email protected]>
Subject: drivers/rtc/rtc-vr41xx.c: fix error return code in rtc_probe()

Fix to return -EBUSY in the platform irq get error handling case instead of 0, as done elsewhere in this function.

---

 drivers/rtc/rtc-vr41xx.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/rtc/rtc-vr41xx.c renamed from drivers/rtc/rtc-vr41xx.c~rtc-rtc-vr41xx-fix-error-return-code-in-rtc_probe +3 -1
diff -puN drivers/rtc/rtc-vr41xx.c~rtc-rtc-vr41xx-fix-error-return-code-in-rtc_probe drivers/rtc/rtc-vr41xx.c
@@ -339,8 +339,10 @@ static int rtc_probe(struct platform_dev
 		goto err_device_unregister;
 
 	pie_irq = platform_get_irq(pdev, 1);
-	if (pie_irq <= 0)
+	if (pie_irq <= 0) {
+		retval = -EBUSY;
 		goto err_free_irq;
+	}
 
 	retval = request_irq(pie_irq, rtclong1_interrupt, 0,
 			     "rtclong1", pdev);

_

Patches currently in -mm which might be from [email protected] are

origin.patch
linux-next.patch