mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-03-09 15:40:20 +00:00
Add 5.14 patches for RPI
This commit is contained in:
parent
030f2f4fd1
commit
5c593832cc
550 changed files with 224556 additions and 0 deletions
|
@ -0,0 +1,30 @@
|
|||
From bdd1d3be8e34548def4b0c1949c90cf65cc4beb3 Mon Sep 17 00:00:00 2001
|
||||
From: Phil Elwell <phil@raspberrypi.org>
|
||||
Date: Mon, 6 Jan 2020 16:04:30 +0000
|
||||
Subject: [PATCH 175/552] pinctrl: bcm2835: Remove gpiochip on error
|
||||
|
||||
A failure in gpiochip_irqchip_add leads to a leak of a gpiochip. Fix
|
||||
the leak with the use of devm_gpiochip_add_data.
|
||||
|
||||
Fixes: 85ae9e512f43 ("pinctrl: bcm2835: switch to GPIOLIB_IRQCHIP")
|
||||
Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
||||
---
|
||||
drivers/pinctrl/bcm/pinctrl-bcm2835.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/drivers/pinctrl/bcm/pinctrl-bcm2835.c b/drivers/pinctrl/bcm/pinctrl-bcm2835.c
|
||||
index 3b1cef282ba5..93525e5597c4 100644
|
||||
--- a/drivers/pinctrl/bcm/pinctrl-bcm2835.c
|
||||
+++ b/drivers/pinctrl/bcm/pinctrl-bcm2835.c
|
||||
@@ -1304,7 +1304,7 @@ static int bcm2835_pinctrl_probe(struct platform_device *pdev)
|
||||
girq->default_type = IRQ_TYPE_NONE;
|
||||
girq->handler = handle_level_irq;
|
||||
|
||||
- err = gpiochip_add_data(&pc->gpio_chip, pc);
|
||||
+ err = devm_gpiochip_add_data(dev, &pc->gpio_chip, pc);
|
||||
if (err) {
|
||||
dev_err(dev, "could not add GPIO chip\n");
|
||||
return err;
|
||||
--
|
||||
2.33.0
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue