Skip to contentSkip to conversation

+ rtc-rtc-vr41xx-fix-error-return-code-in-rtc_probe.patch added to -mm tree

PATCH [email protected] 1 participant 1 message May 23, 2013 Real time clock (RTC)

lore
Share & tools
lore
#0 lore raw

Subject: + rtc-rtc-vr41xx-fix-error-return-code-in-rtc_probe.patch added to -mm tree
To: [email protected]
From: [email protected]
Date: Thu, 23 May 2013 13:29:39 -0700

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

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
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 rtc-rtc-vr41xx-fix-error-return-code-in-rtc_probe.patch