request for 4.14-stable: 26e480f7bb78 ("rtc: omap: fix error path when pinctrl_register fails")
Subsystems (2)
Hi Greg,
This was not marked for stable but seems it should be in stable. Please apply to your queue of 4.14-stable.
--
Regards
Sudip
Quoted 1 line
From
76032858c1b183522cf603a789de223e1ff0f239Mon Sep 17 00:00:00 2001
From: Alexandre Belloni <[email protected]>
Date: Fri, 13 Oct 2017 00:06:44 +0200
Subject: [PATCH] rtc: omap: fix error path when pinctrl_register fails
commit 26e480f7bb7840fc0daa9c3af7c4501b2cf5902f upstream
If pinctrl_register() fails probe will return with an error without locking the RTC and disabling pm_runtime.
Set ret and jump to err instead.
Fixes 97ea1906b3c2 ("rtc: omap: Support ext_wakeup configuration")
Signed-off-by Alexandre Belloni <[email protected]>
Signed-off-by Sudip Mukherjee <[email protected]>
--- drivers/rtc/rtc-omap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/rtc/rtc-omap.c +2 -1
@@ -823,7 +823,8 @@ static int omap_rtc_probe(struct platform_device *pdev) rtc->pctldev =pinctrl_register (&rtc_pinctrl_desc, &pdev->dev, rtc);if (IS_ERR (rtc->pctldev)) {dev_err (&pdev->dev,"Couldn't register pinctrl driver\n" ); -return PTR_ERR (rtc->pctldev); + ret =PTR_ERR (rtc->pctldev); + goto err; }if (rtc->is_pmic_controller) {
Signature · 1 line
2.11.0