+ drivers-rtc-rtc-mxcc-check-the-return-value-from-clk_prepare_enable.patch added to -mm tree
Subsystems (2)
Subject: + drivers-rtc-rtc-mxcc-check-the-return-value-from-clk_prepare_enable.patch added to -mm tree
To: [email protected]
From: [email protected]
Date: Tue, 03 Dec 2013 12:34:09 -0800
The patch titled
Subject: drivers/rtc/rtc-mxc.c: check the return value from clk_prepare_enable()
has been added to the -mm tree. Its filename is
drivers-rtc-rtc-mxcc-check-the-return-value-from-clk_prepare_enable.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/drivers-rtc-rtc-mxcc-check-the-return-value-from-clk_prepare_enable.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/drivers-rtc-rtc-mxcc-check-the-return-value-from-clk_prepare_enable.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 <[email protected]>
Subject: drivers/rtc/rtc-mxc.c: check the return value from clk_prepare_enable()
clk_prepare_enable() may fail, so let's check its return value and propagate it in the case of error.
---
drivers/rtc/rtc-mxc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/rtc/rtc-mxc.c renamed from drivers/rtc/rtc-mxc.c~drivers-rtc-rtc-mxcc-check-the-return-value-from-clk_prepare_enable +4 -1
@@ -394,7 +394,10 @@ static int mxc_rtc_probe(struct platformreturn PTR_ERR (pdata->clk); } -clk_prepare_enable (pdata->clk); + ret =clk_prepare_enable (pdata->clk); +if (ret) +return ret; + rate =clk_get_rate (pdata->clk);if (rate ==32768 )
_
Patches currently in -mm which might be from [email protected] are
origin.patch
drivers-rtc-rtc-mxcc-remove-unneeded-label.patch drivers-rtc-rtc-mxcc-check-the-return-value-from-clk_prepare_enable.patch linux-next.patch