diff options
| author | Jiri Slaby (SUSE) <[email protected]> | 2025-03-19 09:29:10 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2025-05-16 19:06:09 +0000 |
| commit | 9cf19f061ccc98b63367b16551c290016b7d6b13 (patch) | |
| tree | 7d19cf43f558db15b7a87023b44c2700f63b7ef3 /drivers/gpio/gpio-brcmstb.c | |
| parent | EDAC/altera: Switch to irq_domain_create_linear() (diff) | |
| download | kernel-9cf19f061ccc98b63367b16551c290016b7d6b13.tar.gz kernel-9cf19f061ccc98b63367b16551c290016b7d6b13.zip | |
gpio: Switch to irq_domain_create_*()
irq_domain_add_*() interfaces are going away as being obsolete now.
Switch to the preferred irq_domain_create_*() ones. Those differ in the
node parameter: They take more generic struct fwnode_handle instead of
struct device_node. Therefore, of_fwnode_handle() is added around the
original 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).
[ tglx: Fix up subject prefix ]
Signed-off-by: Jiri Slaby (SUSE) <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
Diffstat (limited to 'drivers/gpio/gpio-brcmstb.c')
| -rw-r--r-- | drivers/gpio/gpio-brcmstb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-brcmstb.c b/drivers/gpio/gpio-brcmstb.c index ca3472977431..e7671bcd5c07 100644 --- a/drivers/gpio/gpio-brcmstb.c +++ b/drivers/gpio/gpio-brcmstb.c @@ -437,7 +437,7 @@ static int brcmstb_gpio_irq_setup(struct platform_device *pdev, int err; priv->irq_domain = - irq_domain_add_linear(np, priv->num_gpios, + irq_domain_create_linear(of_fwnode_handle(np), priv->num_gpios, &brcmstb_gpio_irq_domain_ops, priv); if (!priv->irq_domain) { |
