diff options
author | Wolfram Sang <wsa@kernel.org> | 2021-01-28 10:03:25 +0100 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2021-01-28 10:03:25 +0100 |
commit | 2e7f3db5d886701c2a31219530845f642fe700d9 (patch) | |
tree | cc14a072dec431cdb69597f76282e6375420e71f /drivers/gpio/gpiolib.c | |
parent | 73cc584cfced260133cfc635f9921d66da676749 (diff) | |
parent | 6ee1d745b7c9fd573fba142a2efdad76a9f1cb04 (diff) |
Merge tag 'v5.11-rc5' into i2c/for-5.12
Linux 5.11-rc5
Diffstat (limited to 'drivers/gpio/gpiolib.c')
-rw-r--r-- | drivers/gpio/gpiolib.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 611d6ea82d75..7e1ad4d40e0a 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -1489,6 +1489,9 @@ static int gpiochip_add_irqchip(struct gpio_chip *gc, type = IRQ_TYPE_NONE; } + if (gc->to_irq) + chip_warn(gc, "to_irq is redefined in %s and you shouldn't rely on it\n", __func__); + gc->to_irq = gpiochip_to_irq; gc->irq.default_type = type; gc->irq.lock_key = lock_key; |