fe503887ee
platform_get_irq() returns non-zero IRQ number on success,
negative error number on failure.
And the doc of platform_get_irq() provides a usage example:
int irq = platform_get_irq(pdev, 0);
if (irq < 0)
return irq;
Fix the check of return value to catch errors correctly.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
core.c | ||
messaging.c | ||
qcom-ctrl.c | ||
qcom-ngd-ctrl.c | ||
sched.c | ||
slimbus.h | ||
stream.c |