diff options
| author | Miaoqian Lin <linmq006@gmail.com> | 2022-01-20 10:46:54 +0000 |
|---|---|---|
| committer | Sebastian Reichel <sre@kernel.org> | 2022-02-01 11:07:59 +0100 |
| commit | ba18dad0fb880cd29aa97b6b75560ef14d1061ba (patch) | |
| tree | 169a68969ba92f14ba7a531bd62de868f1cdf4e1 /tools/perf/scripts/python/stackcollapse.py | |
| parent | power: supply: mp2629_charger: use platform_get_irq() (diff) | |
| download | linux-ba18dad0fb880cd29aa97b6b75560ef14d1061ba.tar.gz linux-ba18dad0fb880cd29aa97b6b75560ef14d1061ba.zip | |
power: reset: gemini-poweroff: Fix IRQ check in gemini_poweroff_probe
platform_get_irq() returns negative error number instead 0 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: f7a388d6cd1c ("power: reset: Add a driver for the Gemini poweroff")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
