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)
commitfe0b5cedc2b73c9b005e1812c0ae5b922a96243a
tree2ee9aafab4c2a7c7eac3d01b2604962d9404662f
parentbc51098cdd9573bfdecfd02fc8ed474419d73ea0
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