Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

irqdomain: Remove stray '-' in the domain name

When the domain suffix is not supplied alloc_fwnode_name() unconditionally
adds a separator.

Fix the format strings to get rid of the stray '-' separator.

Fixes: 1e7c05292531 ("irqdomain: Allow giving name suffix for domain")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20240812193101.1266625-3-andriy.shevchenko@linux.intel.com

authored by

Andy Shevchenko and committed by
Thomas Gleixner
7b9414cb c0ece644

+2 -2
+2 -2
kernel/irq/irqdomain.c
··· 149 149 char *name; 150 150 151 151 if (bus_token == DOMAIN_BUS_ANY) 152 - name = kasprintf(GFP_KERNEL, "%pfw-%s", fwnode, suf); 152 + name = kasprintf(GFP_KERNEL, "%pfw%s%s", fwnode, sep, suf); 153 153 else 154 - name = kasprintf(GFP_KERNEL, "%pfw-%s%s%d", fwnode, suf, sep, bus_token); 154 + name = kasprintf(GFP_KERNEL, "%pfw%s%s-%d", fwnode, sep, suf, bus_token); 155 155 if (!name) 156 156 return -ENOMEM; 157 157