Subject: + rtc-rtc-imxdi-check-the-return-value-from-clk_prepare_enable.patch added to -mm tree To: fabio.estevam@xxxxxxxxxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx Date: Mon, 27 Jan 2014 15:08:08 -0800 The patch titled Subject: drivers/rtc/rtc-imxdi.c: check the return value from clk_prepare_enable() has been added to the -mm tree. Its filename is rtc-rtc-imxdi-check-the-return-value-from-clk_prepare_enable.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/rtc-rtc-imxdi-check-the-return-value-from-clk_prepare_enable.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/rtc-rtc-imxdi-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 <fabio.estevam@xxxxxxxxxxxxx> Subject: drivers/rtc/rtc-imxdi.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. Signed-off-by: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/rtc/rtc-imxdi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff -puN drivers/rtc/rtc-imxdi.c~rtc-rtc-imxdi-check-the-return-value-from-clk_prepare_enable drivers/rtc/rtc-imxdi.c --- a/drivers/rtc/rtc-imxdi.c~rtc-rtc-imxdi-check-the-return-value-from-clk_prepare_enable +++ a/drivers/rtc/rtc-imxdi.c @@ -401,7 +401,9 @@ static int __init dryice_rtc_probe(struc imxdi->clk = devm_clk_get(&pdev->dev, NULL); if (IS_ERR(imxdi->clk)) return PTR_ERR(imxdi->clk); - clk_prepare_enable(imxdi->clk); + rc = clk_prepare_enable(imxdi->clk); + if (rc) + return rc; /* * Initialize dryice hardware _ Patches currently in -mm which might be from fabio.estevam@xxxxxxxxxxxxx are origin.patch rtc-rtc-imxdi-check-the-return-value-from-clk_prepare_enable.patch linux-next.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html