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

Commit 8abdd2d2 authored by Alan Cox's avatar Alan Cox Committed by Linus Walleij
Browse files

gpio-sch: Fix leak of resource

parent 0d7614f0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -241,7 +241,8 @@ static int __devinit sch_gpio_probe(struct platform_device *pdev)
			break;

		default:
			return -ENODEV;
			err = -ENODEV;
			goto err_sch_gpio_core;
	}

	sch_gpio_core.dev = &pdev->dev;