summaryrefslogtreecommitdiff
path: root/drivers/power/reset/gemini-poweroff.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/power/reset/gemini-poweroff.c')
-rw-r--r--drivers/power/reset/gemini-poweroff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/reset/gemini-poweroff.c b/drivers/power/reset/gemini-poweroff.c
index 90e35c07240a..b7f7a8225f22 100644
--- a/drivers/power/reset/gemini-poweroff.c
+++ b/drivers/power/reset/gemini-poweroff.c
@@ -107,8 +107,8 @@ static int gemini_poweroff_probe(struct platform_device *pdev)
return PTR_ERR(gpw->base);
irq = platform_get_irq(pdev, 0);
- if (!irq)
- return -EINVAL;
+ if (irq < 0)
+ return irq;
gpw->dev = dev;