]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/panthor: Drop a needless check in panthor_fw_unplug()
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 25 Jun 2026 12:40:34 +0000 (14:40 +0200)
committerLiviu Dudau <liviu.dudau@arm.com>
Tue, 30 Jun 2026 14:26:55 +0000 (15:26 +0100)
panthor_fw_unplug() is only called if we at least managed to initialize
the IRQ, so it's safe to drop the "is IRQ initialized" check.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
Link: https://patch.msgid.link/20260625-panthor-misc-fixes-v1-8-b67ed973fea6@collabora.com
drivers/gpu/drm/panthor/panthor_fw.c

index 986151681b246be1a3d72b953008e479d86f8011..4fbddb9e18c8b3d99c072e7b2c099069d443196f 100644 (file)
@@ -1279,9 +1279,7 @@ void panthor_fw_unplug(struct panthor_device *ptdev)
 
        if (!IS_ENABLED(CONFIG_PM) || pm_runtime_active(ptdev->base.dev)) {
                /* Make sure the IRQ handler cannot be called after that point. */
-               if (ptdev->fw->irq.irq)
-                       panthor_job_irq_suspend(&ptdev->fw->irq);
-
+               panthor_job_irq_suspend(&ptdev->fw->irq);
                panthor_fw_stop(ptdev);
        }