All of lore.kernel.org
 help / color / mirror / Atom feed
* + rtc-rtc-pcf8563-fix-irq-request.patch added to -mm tree
@ 2014-07-24 23:04 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2014-07-24 23:04 UTC (permalink / raw)
  To: vdonnefort, dan.carpenter, mm-commits


The patch titled
     Subject: drivers/rtc/rtc-pcf8563.c: fix irq request
has been added to the -mm tree.  Its filename is
     rtc-rtc-pcf8563-fix-irq-request.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/rtc-rtc-pcf8563-fix-irq-request.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/rtc-rtc-pcf8563-fix-irq-request.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: Vincent Donnefort <vdonnefort@gmail.com>
Subject: drivers/rtc/rtc-pcf8563.c: fix irq request

pcf8563_probe() failed to check the devm_rtc_device_register() return value.

Signed-off-by: Vincent Donnefort <vdonnefort@gmail.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/rtc/rtc-pcf8563.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff -puN drivers/rtc/rtc-pcf8563.c~rtc-rtc-pcf8563-fix-irq-request drivers/rtc/rtc-pcf8563.c
--- a/drivers/rtc/rtc-pcf8563.c~rtc-rtc-pcf8563-fix-irq-request
+++ a/drivers/rtc/rtc-pcf8563.c
@@ -419,7 +419,8 @@ static int pcf8563_probe(struct i2c_clie
 				pcf8563_driver.driver.name,
 				&pcf8563_rtc_ops, THIS_MODULE);
 
-	return PTR_ERR_OR_ZERO(pcf8563->rtc);
+	if (IS_ERR(pcf8563->rtc))
+		return PTR_ERR(pcf8563->rtc);
 
 	if (client->irq > 0) {
 		err = devm_request_threaded_irq(&client->dev, client->irq,
_

Patches currently in -mm which might be from vdonnefort@gmail.com are

rtc-rtc-pcf8563-introducing-readwrite_block_data.patch
rtc-rtc-pcf8563-add-alarm-support.patch
rtc-rtc-pcf8563-fix-irq-request.patch
linux-next.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-07-24 23:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-24 23:04 + rtc-rtc-pcf8563-fix-irq-request.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.