genirq/msi: Drop dead domain name assignment
authorJohan Hovold <johan+linaro@kernel.org>
Fri, 24 Feb 2023 13:05:09 +0000 (14:05 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 24 Feb 2023 19:54:58 +0000 (20:54 +0100)
Since commit d59f6617eef0 ("genirq: Allow fwnode to carry name
information only") an IRQ domain is always given a name during
allocation (e.g. used for the debugfs entry).

Drop the unused fallback name assignment when creating MSI domains.

Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20230224130509.27814-1-johan+linaro@kernel.org
kernel/irq/msi.c

index 13d96495e6d092146c2c0335b585ba73e4955329..efd21b79bf322f7f31d4e2d5415a332b8ba0734f 100644 (file)
@@ -830,11 +830,8 @@ static struct irq_domain *__msi_create_irq_domain(struct fwnode_handle *fwnode,
        domain = irq_domain_create_hierarchy(parent, flags | IRQ_DOMAIN_FLAG_MSI, 0,
                                             fwnode, &msi_domain_ops, info);
 
-       if (domain) {
-               if (!domain->name && info->chip)
-                       domain->name = info->chip->name;
+       if (domain)
                irq_domain_update_bus_token(domain, info->bus_token);
-       }
 
        return domain;
 }