OSDN Git Service

gpiolib: Drop unused domain_ops memeber of GPIO IRQ chip
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 16 Jun 2023 13:53:13 +0000 (16:53 +0300)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 19 Jun 2023 13:00:25 +0000 (15:00 +0200)
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>
drivers/gpio/gpiolib.c
include/linux/gpio/driver.h

index 6e66e7e..5fd5186 100644 (file)
@@ -1669,11 +1669,10 @@ static int gpiochip_add_irqchip(struct gpio_chip *gc,
                if (ret)
                        return ret;
        } else {
-               /* Some drivers provide custom irqdomain ops */
                gc->irq.domain = irq_domain_create_simple(fwnode,
                        gc->ngpio,
                        gc->irq.first,
-                       gc->irq.domain_ops ?: &gpiochip_domain_ops,
+                       &gpiochip_domain_ops,
                        gc);
                if (!gc->irq.domain)
                        return -EINVAL;
index 5c6db55..6879b54 100644 (file)
@@ -61,13 +61,6 @@ struct gpio_irq_chip {
         */
        struct irq_domain *domain;
 
-       /**
-        * @domain_ops:
-        *
-        * Table of interrupt domain operations for this IRQ chip.
-        */
-       const struct irq_domain_ops *domain_ops;
-
 #ifdef CONFIG_IRQ_DOMAIN_HIERARCHY
        /**
         * @fwnode: