MIPS: TXx9: Fix error handling / Fix for noenexisting gpio_remove.
Ralf Roesch [Wed, 16 Sep 2009 06:01:20 +0000 (08:01 +0200)]
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>

arch/mips/txx9/generic/setup.c

index c860810..dfe4720 100644 (file)
@@ -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: