android_kernel_motorola_sm6375/drivers/slimbus
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Miaoqian Lin 031fda28d0 slimbus: qcom: Fix IRQ check in qcom_slim_probe
commit fe503887eed6ea528e144ec8dacfa1d47aa701ac upstream.

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: ad7fcbc308 ("slimbus: qcom: Add Qualcomm Slimbus controller driver")
Cc: [email protected]
Signed-off-by: Miaoqian Lin <[email protected]>
Signed-off-by: Srinivas Kandagatla <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2022-05-18 09:47:27 +02:00
..
core.c
Kconfig
Makefile
messaging.c slimbus: messaging: check for valid transaction id 2021-08-26 08:36:20 -04:00
qcom-ctrl.c slimbus: qcom: Fix IRQ check in qcom_slim_probe 2022-05-18 09:47:27 +02:00
qcom-ngd-ctrl.c slimbus: ngd: reset dma setup during runtime pm 2021-08-26 08:36:21 -04:00
sched.c
slimbus.h
stream.c