]> git.itanic.dy.fi Git - linux-stable/commit
rtc: omap: fix error path when pinctrl_register fails
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 12 Oct 2017 22:06:44 +0000 (00:06 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Tue, 31 Oct 2017 16:31:10 +0000 (17:31 +0100)
commit26e480f7bb7840fc0daa9c3af7c4501b2cf5902f
tree39c84568bfa55e44a1be0c58b2672c32b21049ee
parent3ba2c76a9d3a339cd1b77e88915680ae2e9ac2da
rtc: omap: fix error path when pinctrl_register fails

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 <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-omap.c