MIPS: TXx9: Fix error handling / Fix for noenexisting gpio_remove.
authorRalf Roesch <ralf.roesch@rw-gmbh.de>
Wed, 16 Sep 2009 06:01:20 +0000 (08:01 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 2 Nov 2009 11:00:02 +0000 (12:00 +0100)
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 c860810722c0a1450a47a3268e9e520e97712efc..dfe4720ac82e017b73ad952b7ee95cee9d34161d 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: