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

gpio: grgpio: remove irq_domain resources on failure

Call irq_domain_remove when gpiochip_add fails to release irq_domain
Signed-off-by: default avatarPramod Gurav <>
Acked-by: default avatarAlexandre Courbot <>
Signed-off-by: default avatarLinus Walleij <>
parent 1972c97d
......@@ -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");
return err;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment