Skip to content

Commit a48b3f7

Browse files
andy-shevBartosz Golaszewski
authored andcommitted
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 <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Acked-by: Marc Zyngier <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent c07ce33 commit a48b3f7

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

drivers/gpio/gpiolib.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1669,11 +1669,10 @@ static int gpiochip_add_irqchip(struct gpio_chip *gc,
16691669
if (ret)
16701670
return ret;
16711671
} else {
1672-
/* Some drivers provide custom irqdomain ops */
16731672
gc->irq.domain = irq_domain_create_simple(fwnode,
16741673
gc->ngpio,
16751674
gc->irq.first,
1676-
gc->irq.domain_ops ?: &gpiochip_domain_ops,
1675+
&gpiochip_domain_ops,
16771676
gc);
16781677
if (!gc->irq.domain)
16791678
return -EINVAL;

include/linux/gpio/driver.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,6 @@ struct gpio_irq_chip {
6161
*/
6262
struct irq_domain *domain;
6363

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-
7164
#ifdef CONFIG_IRQ_DOMAIN_HIERARCHY
7265
/**
7366
* @fwnode:

0 commit comments

Comments
 (0)