Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 65fdc966 authored by Pramod Gurav's avatar Pramod Gurav Committed by Linus Walleij
Browse files

gpio: grgpio: remove irq_domain resources on failure



Call irq_domain_remove when gpiochip_add fails to release irq_domain
resources.

Signed-off-by: default avatarPramod Gurav <pramod.gurav@smartplayin.com>
Acked-by: default avatarAlexandre Courbot <acourbot@nvidia.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 1972c97d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -441,6 +441,7 @@ static int grgpio_probe(struct platform_device *ofdev)
	err = gpiochip_add(gc);
	if (err) {
		dev_err(&ofdev->dev, "Could not add gpiochip\n");
		irq_domain_remove(priv->domain);
		return err;
	}