diff options
author | Miaoqian Lin <[email protected]> | 2022-04-29 17:49:17 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2022-05-09 16:00:20 +0200 |
commit | fe503887eed6ea528e144ec8dacfa1d47aa701ac (patch) | |
tree | 6e50dd281d263322b196c9122629eff89e1e7c6d /tools/perf/scripts/python/bin/export-to-sqlite-report | |
parent | 672c0c5173427e6b3e2a9bbb7be51ceeec78093a (diff) |
slimbus: qcom: Fix IRQ check in qcom_slim_probe
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: ad7fcbc308b0 ("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]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-sqlite-report')
0 files changed, 0 insertions, 0 deletions