summaryrefslogtreecommitdiff
path: root/scripts/dummy-tools/python3
diff options
context:
space:
mode:
authorStepan Ionichev <sozdayvek@gmail.com>2026-05-21 00:09:24 +0500
committerJonathan Cameron <jic23@kernel.org>2026-05-26 19:22:57 +0100
commit929fec2964f71d4b1ac664ee963d8226c5cf01c6 (patch)
treeee1962181d660121e01d6ce06a03114014c511d5 /scripts/dummy-tools/python3
parent744bccc2647c6b2206290e8e40890a23812116b3 (diff)
iio: adc: qcom-spmi-iadc: balance enable_irq_wake() on driver unbind
iadc_probe() calls enable_irq_wake() after a successful devm_request_irq(), but the driver has no remove callback or matching disable_irq_wake(), so the wake reference count on the IRQ is leaked on module unload or driver unbind. Check the IRQ request error first, then register a devm action that calls disable_irq_wake() so the wake reference is released in the same scope as the enable. While here, drop the inverted "if (!ret) ... else return ret" in favour of the standard "if (ret) return ret;" pattern. Signed-off-by: Stepan Ionichev <sozdayvek@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'scripts/dummy-tools/python3')
0 files changed, 0 insertions, 0 deletions