mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 02:09:42 +00:00
MIPS: TXx9: Fix error handling / Fix for noenexisting gpio_remove.
Error was introduced by commit 0385d1f3d394c6814be0b165c153fc3fc254469a. Signed-off-by: Ralf Roesch <ralf.roesch@rw-gmbh.de> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
c49e38c1a5
commit
a2e62f3a85
1 changed files with 2 additions and 1 deletions
|
@ -817,7 +817,8 @@ void __init txx9_iocled_init(unsigned long baseaddr,
|
||||||
out_pdev:
|
out_pdev:
|
||||||
platform_device_put(pdev);
|
platform_device_put(pdev);
|
||||||
out_gpio:
|
out_gpio:
|
||||||
gpio_remove(&iocled->chip);
|
if (gpiochip_remove(&iocled->chip))
|
||||||
|
return;
|
||||||
out_unmap:
|
out_unmap:
|
||||||
iounmap(iocled->mmioaddr);
|
iounmap(iocled->mmioaddr);
|
||||||
out_free:
|
out_free:
|
||||||
|
|
Loading…
Reference in a new issue