mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 15:01:13 +07:00
gpio: pxa: use devm_irq_alloc_descs()
This driver never frees the interrupt descriptors it allocates. Fix it by using the resource managed version of irq_alloc_descs(). Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Acked-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
31bd86d983
commit
bda61a192a
@ -601,7 +601,7 @@ static int pxa_gpio_probe_dt(struct platform_device *pdev,
|
|||||||
nr_gpios = gpio_id->gpio_nums;
|
nr_gpios = gpio_id->gpio_nums;
|
||||||
pxa_last_gpio = nr_gpios - 1;
|
pxa_last_gpio = nr_gpios - 1;
|
||||||
|
|
||||||
irq_base = irq_alloc_descs(-1, 0, nr_gpios, 0);
|
irq_base = devm_irq_alloc_descs(&pdev->dev, -1, 0, nr_gpios, 0);
|
||||||
if (irq_base < 0) {
|
if (irq_base < 0) {
|
||||||
dev_err(&pdev->dev, "Failed to allocate IRQ numbers\n");
|
dev_err(&pdev->dev, "Failed to allocate IRQ numbers\n");
|
||||||
return irq_base;
|
return irq_base;
|
||||||
|
Loading…
Reference in New Issue
Block a user