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

Commit a2e62f3a authored by Ralf Roesch's avatar Ralf Roesch Committed by Ralf Baechle
Browse files

MIPS: TXx9: Fix error handling / Fix for noenexisting gpio_remove.



Error was introduced by commit 0385d1f3d394c6814be0b165c153fc3fc254469a.

Signed-off-by: default avatarRalf Roesch <ralf.roesch@rw-gmbh.de>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent c49e38c1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -817,7 +817,8 @@ void __init txx9_iocled_init(unsigned long baseaddr,
out_pdev:
	platform_device_put(pdev);
out_gpio:
	gpio_remove(&iocled->chip);
	if (gpiochip_remove(&iocled->chip))
		return;
out_unmap:
	iounmap(iocled->mmioaddr);
out_free: