summaryrefslogtreecommitdiff
path: root/arch/mips/ralink/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/ralink/timer.c')
-rw-r--r--arch/mips/ralink/timer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/ralink/timer.c b/arch/mips/ralink/timer.c
index d4469b20d176..4f46a4509f79 100644
--- a/arch/mips/ralink/timer.c
+++ b/arch/mips/ralink/timer.c
@@ -109,9 +109,9 @@ static int rt_timer_probe(struct platform_device *pdev)
}
rt->irq = platform_get_irq(pdev, 0);
- if (!rt->irq) {
+ if (rt->irq < 0) {
dev_err(&pdev->dev, "failed to load irq\n");
- return -ENOENT;
+ return rt->irq;
}
rt->membase = devm_ioremap_resource(&pdev->dev, res);