Commit a2e62f3a852e1e8187853291f5ee09ad4c881fcc

Authored by Ralf Roesch
Committed by Ralf Baechle
1 parent c49e38c1a5

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>

Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff

arch/mips/txx9/generic/setup.c
... ... @@ -817,7 +817,8 @@
817 817 out_pdev:
818 818 platform_device_put(pdev);
819 819 out_gpio:
820   - gpio_remove(&iocled->chip);
  820 + if (gpiochip_remove(&iocled->chip))
  821 + return;
821 822 out_unmap:
822 823 iounmap(iocled->mmioaddr);
823 824 out_free: