]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/vc4: Use devm_request_irq() for automatic cleanup
authorMaíra Canal <mcanal@igalia.com>
Mon, 30 Mar 2026 17:51:47 +0000 (14:51 -0300)
committerMaíra Canal <mcanal@igalia.com>
Thu, 2 Apr 2026 13:21:12 +0000 (10:21 -0300)
commit19e2815babd4c51a51ebabfe68daa90eb26309c3
tree2c884f99469b4076a7b1a3d4c0bbe410cf29e747
parentf649e63d4a6423eda8eb208638849fd6396aedd7
drm/vc4: Use devm_request_irq() for automatic cleanup

Switch from request_irq()/free_irq() to the device-managed alternative
devm_request_irq(), letting device-managed resource cleanup handle IRQ
teardown automatically.

While here, inline vc4_irq_prepare() into vc4_irq_install() since it's
the only caller.

Reviewed-by: Melissa Wen <mwen@igalia.com>
Link: https://patch.msgid.link/20260330-vc4-misc-fixes-v1-5-92defc940a29@igalia.com
Signed-off-by: Maíra Canal <mcanal@igalia.com>
drivers/gpu/drm/vc4/vc4_irq.c