summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/base/platform.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/base/platform.c')
-rw-r--r--kernel/drivers/base/platform.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/drivers/base/platform.c b/kernel/drivers/base/platform.c
index 176b59f5b..ba66330ce 100644
--- a/kernel/drivers/base/platform.c
+++ b/kernel/drivers/base/platform.c
@@ -96,7 +96,7 @@ int platform_get_irq(struct platform_device *dev, unsigned int num)
int ret;
ret = of_irq_get(dev->dev.of_node, num);
- if (ret >= 0 || ret == -EPROBE_DEFER)
+ if (ret > 0 || ret == -EPROBE_DEFER)
return ret;
}
@@ -154,7 +154,7 @@ int platform_get_irq_byname(struct platform_device *dev, const char *name)
int ret;
ret = of_irq_get_byname(dev->dev.of_node, name);
- if (ret >= 0 || ret == -EPROBE_DEFER)
+ if (ret > 0 || ret == -EPROBE_DEFER)
return ret;
}