Skip to content

Commit

Permalink
genirq/msi: Drop dead domain name assignment
Browse files Browse the repository at this point in the history
Since commit d59f661 ("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
  • Loading branch information
Johan Hovold authored and Thomas Gleixner committed Feb 24, 2023
1 parent ad32ab9 commit ea9a78c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions kernel/irq/msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ea9a78c

Please sign in to comment.