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>
This commit is contained in:
parent
f16189aca0
commit
58f27d7d06
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue