]> git.baikalelectronics.ru Git - kernel.git/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)
commit9e4057ae1d028934038555e15f0aec3faa51b6c2
tree39c84568bfa55e44a1be0c58b2672c32b21049ee
parent054f47bd6882dc450b2edff314b20fd2469123d1
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: 585507e4a50f ("rtc: omap: Support ext_wakeup configuration")
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-omap.c