]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: tegra: Propagate errors from platform_get_irq()
authorThierry Reding <treding@nvidia.com>
Fri, 21 Sep 2018 10:12:09 +0000 (12:12 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 16 Oct 2018 10:56:56 +0000 (12:56 +0200)
commitb31f10218fbfe4ce8e1f2927bf6fced732397728
tree2ee9aafab4c2a7c7eac3d01b2604962d9404662f
parent59ec85c67e815513789ee3dfc30a4d82c145a70c
rtc: tegra: Propagate errors from platform_get_irq()

Instead of confusingly returning -EBUSY on failure to obtain an
interrupt, propagate the real error code. While at it, let the user know
why the interrupt could not be acquired.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-tegra.c