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: ssb: Switch to irq_domain_create_linear()

irq_domain_add_linear() is going away as being obsolete now. Switch to
the preferred irq_domain_create_linear(). That differs in the first
parameter: It takes more generic struct fwnode_handle instead of struct
device_node. Therefore, of_fwnode_handle() is added around the
parameter.

Note some of the users can likely use dev->fwnode directly instead of
indirect of_fwnode_handle(dev->of_node). But dev->fwnode is not
guaranteed to be set for all, so this has to be investigated on case to
case basis (by people who can actually test with the HW).

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Cc: Michael Buesch <m@bues.ch>
Cc: linux-wireless@vger.kernel.org
Link: https://patch.msgid.link/20250319092951.37667-38-jirislaby@kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

authored by

Jiri Slaby (SUSE) and committed by
Johannes Berg
46380bf0 ad748a73

+4 -4
+4 -4
drivers/ssb/driver_gpio.c
··· 148 148 if (bus->bustype != SSB_BUSTYPE_SSB) 149 149 return 0; 150 150 151 - bus->irq_domain = irq_domain_add_linear(NULL, chip->ngpio, 152 - &irq_domain_simple_ops, chipco); 151 + bus->irq_domain = irq_domain_create_linear(NULL, chip->ngpio, &irq_domain_simple_ops, 152 + chipco); 153 153 if (!bus->irq_domain) { 154 154 err = -ENODEV; 155 155 goto err_irq_domain; ··· 347 347 if (bus->bustype != SSB_BUSTYPE_SSB) 348 348 return 0; 349 349 350 - bus->irq_domain = irq_domain_add_linear(NULL, chip->ngpio, 351 - &irq_domain_simple_ops, extif); 350 + bus->irq_domain = irq_domain_create_linear(NULL, chip->ngpio, &irq_domain_simple_ops, 351 + extif); 352 352 if (!bus->irq_domain) { 353 353 err = -ENODEV; 354 354 goto err_irq_domain;