]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
gpu: ipu-v3: Switch to irq_find_mapping()
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Wed, 19 Mar 2025 09:29:37 +0000 (10:29 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 16 May 2025 19:06:12 +0000 (21:06 +0200)
irq_linear_revmap() is deprecated, so remove all its uses and supersede
them by an identical call to irq_find_mapping().

[ tglx: Fix up subject prefix ]

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250319092951.37667-45-jirislaby@kernel.org
drivers/gpu/ipu-v3/ipu-common.c

index 223e6d563a6b69d79734ddf10ee90322cb644b7c..333f36e0a71576af570a3bf1b2783e9495e50074 100644 (file)
@@ -1008,7 +1008,7 @@ int ipu_map_irq(struct ipu_soc *ipu, int irq)
 {
        int virq;
 
-       virq = irq_linear_revmap(ipu->domain, irq);
+       virq = irq_find_mapping(ipu->domain, irq);
        if (!virq)
                virq = irq_create_mapping(ipu->domain, irq);
 
@@ -1219,7 +1219,7 @@ static void ipu_irq_exit(struct ipu_soc *ipu)
        /* TODO: remove irq_domain_generic_chips */
 
        for (i = 0; i < IPU_NUM_IRQS; i++) {
-               irq = irq_linear_revmap(ipu->domain, i);
+               irq = irq_find_mapping(ipu->domain, i);
                if (irq)
                        irq_dispose_mapping(irq);
        }