All of lore.kernel.org
 help / color / mirror / Atom feed
* + drivers-rtc-rtc-stmp3xxxc-check-the-return-value-from-stmp_reset_block.patch added to -mm tree
@ 2013-07-08 20:48 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2013-07-08 20:48 UTC (permalink / raw)
  To: mm-commits, shawn.guo, fabio.estevam

Subject: + drivers-rtc-rtc-stmp3xxxc-check-the-return-value-from-stmp_reset_block.patch added to -mm tree
To: fabio.estevam@freescale.com,shawn.guo@linaro.org
From: akpm@linux-foundation.org
Date: Mon, 08 Jul 2013 13:48:01 -0700


The patch titled
     Subject: drivers/rtc/rtc-stmp3xxx.c: check the return value from stmp_reset_block()
has been added to the -mm tree.  Its filename is
     drivers-rtc-rtc-stmp3xxxc-check-the-return-value-from-stmp_reset_block.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/drivers-rtc-rtc-stmp3xxxc-check-the-return-value-from-stmp_reset_block.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/drivers-rtc-rtc-stmp3xxxc-check-the-return-value-from-stmp_reset_block.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: Fabio Estevam <fabio.estevam@freescale.com>
Subject: drivers/rtc/rtc-stmp3xxx.c: check the return value from stmp_reset_block()

stmp_reset_block() may fail, so let's check its return value and propagate
it in the case of error.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/rtc/rtc-stmp3xxx.c |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff -puN drivers/rtc/rtc-stmp3xxx.c~drivers-rtc-rtc-stmp3xxxc-check-the-return-value-from-stmp_reset_block drivers/rtc/rtc-stmp3xxx.c
--- a/drivers/rtc/rtc-stmp3xxx.c~drivers-rtc-rtc-stmp3xxxc-check-the-return-value-from-stmp_reset_block
+++ a/drivers/rtc/rtc-stmp3xxx.c
@@ -261,7 +261,12 @@ static int stmp3xxx_rtc_probe(struct pla
 
 	platform_set_drvdata(pdev, rtc_data);
 
-	stmp_reset_block(rtc_data->io);
+	err = stmp_reset_block(rtc_data->io);
+	if (err) {
+		dev_err(&pdev->dev, "stmp_reset_block failed: %d\n", err);
+		return err;
+	}
+
 	writel(STMP3XXX_RTC_PERSISTENT0_ALARM_EN |
 			STMP3XXX_RTC_PERSISTENT0_ALARM_WAKE_EN |
 			STMP3XXX_RTC_PERSISTENT0_ALARM_WAKE,
_

Patches currently in -mm which might be from fabio.estevam@freescale.com are

origin.patch
linux-next.patch
drivers-rtc-rtc-stmp3xxxc-check-the-return-value-from-stmp_reset_block.patch


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

only message in thread, other threads:[~2013-07-08 20:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-08 20:48 + drivers-rtc-rtc-stmp3xxxc-check-the-return-value-from-stmp_reset_block.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.