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

gpiolib: Drop unused domain_ops memeber of GPIO IRQ chip

It seems there is no driver that requires custom IRQ chip
domain options. Drop the member and respective code.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

authored by

Andy Shevchenko and committed by
Bartosz Golaszewski
a48b3f7b c07ce33a

+1 -9
+1 -2
drivers/gpio/gpiolib.c
··· 1669 1669 if (ret) 1670 1670 return ret; 1671 1671 } else { 1672 - /* Some drivers provide custom irqdomain ops */ 1673 1672 gc->irq.domain = irq_domain_create_simple(fwnode, 1674 1673 gc->ngpio, 1675 1674 gc->irq.first, 1676 - gc->irq.domain_ops ?: &gpiochip_domain_ops, 1675 + &gpiochip_domain_ops, 1677 1676 gc); 1678 1677 if (!gc->irq.domain) 1679 1678 return -EINVAL;
-7
include/linux/gpio/driver.h
··· 61 61 */ 62 62 struct irq_domain *domain; 63 63 64 - /** 65 - * @domain_ops: 66 - * 67 - * Table of interrupt domain operations for this IRQ chip. 68 - */ 69 - const struct irq_domain_ops *domain_ops; 70 - 71 64 #ifdef CONFIG_IRQ_DOMAIN_HIERARCHY 72 65 /** 73 66 * @fwnode: