]> 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)
commit26b17f3ef7380b1569d4ee018150aee1b3da5aca
tree39c84568bfa55e44a1be0c58b2672c32b21049ee
parent2f3c929e930c9cd2ca0dc6bcce9725b99cadb118
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: 76eb41d239a0 ("rtc: omap: Support ext_wakeup configuration")
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-omap.c