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 Original line Diff line number Diff line
@@ -241,7 +241,8 @@ static int __devinit sch_gpio_probe(struct platform_device *pdev)
			break;
			break;


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


	sch_gpio_core.dev = &pdev->dev;
	sch_gpio_core.dev = &pdev->dev;