linux-stable/include/linux/gpio
Michael Walle ff7a1790fb gpiolib: Fix irq_domain resource tracking for gpiochip_irqchip_add_domain()
Up until commit 6a45b0e258 ("gpiolib: Introduce
gpiochip_irqchip_add_domain()") all irq_domains were allocated
by gpiolib itself and thus gpiolib also takes care of freeing it.

With gpiochip_irqchip_add_domain() a user of gpiolib can associate an
irq_domain with the gpio_chip. This irq_domain is not managed by
gpiolib and therefore must not be freed by gpiolib.

Fixes: 6a45b0e258 ("gpiolib: Introduce gpiochip_irqchip_add_domain()")
Reported-by: Jiawen Wu <jiawenwu@trustnetic.com>
Signed-off-by: Michael Walle <mwalle@kernel.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
2023-06-19 14:57:38 +02:00
..
aspeed.h gpio: aspeed: Add missing header(s) 2022-10-19 17:03:55 +03:00
consumer.h gpiolib: Clean up headers 2023-03-06 12:33:02 +02:00
driver.h gpiolib: Fix irq_domain resource tracking for gpiochip_irqchip_add_domain() 2023-06-19 14:57:38 +02:00
gpio-reg.h gpio: reg: Add missing header(s) 2022-10-24 12:29:36 +03:00
legacy-of-mm-gpiochip.h gpiolib: split of_mm_gpio_chip out of linux/of_gpio.h 2023-03-06 12:33:01 +02:00
machine.h gpiolib: Clean up headers 2022-10-24 12:30:26 +03:00
property.h gpiolib: add support for software nodes 2022-11-15 11:21:43 +01:00
regmap.h gpio: regmap: move drvdata to config data 2021-06-07 15:39:19 +02:00