summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-11-12 15:10:28 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2013-11-13 12:09:27 +0900
commit58f27d7d061b47f57c84cad7d9af239c6bc6977e (patch)
tree339c51846a293f35e44b4500fb87a23400b39a4d /drivers
parentf16189aca0e2c6395e7fd6593c3a3063764c628d (diff)
downloadblackbird-op-linux-58f27d7d061b47f57c84cad7d9af239c6bc6977e.tar.gz
blackbird-op-linux-58f27d7d061b47f57c84cad7d9af239c6bc6977e.zip
drivers/rtc/rtc-vt8500.c: fix return value
Propagate the return value from platform_get_irq() instead of hardcoding. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Cc: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/rtc/rtc-vt8500.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-vt8500.c b/drivers/rtc/rtc-vt8500.c
index c2d6331fc712..5be217df1d75 100644
--- a/drivers/rtc/rtc-vt8500.c
+++ b/drivers/rtc/rtc-vt8500.c
@@ -228,7 +228,7 @@ static int vt8500_rtc_probe(struct platform_device *pdev)
vt8500_rtc->irq_alarm = platform_get_irq(pdev, 0);
if (vt8500_rtc->irq_alarm < 0) {
dev_err(&pdev->dev, "No alarm IRQ resource defined\n");
- return -ENXIO;
+ return vt8500_rtc->irq_alarm;
}
vt8500_rtc->res = devm_request_mem_region(&pdev->dev,
OpenPOWER on IntegriCloud