| To: | linux-mips@linux-mips.org |
|---|---|
| Subject: | [PATCH] MIPS: TXx9: Fix error handling / Fix for noenexisting gpio_remove. |
| From: | Ralf Roesch <ralf.roesch@rw-gmbh.de> |
| Date: | Wed, 16 Sep 2009 08:01:20 +0200 |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
error was introduced by commit 0385d1f3d394c6814be0b165c153fc3fc254469a
Signed-off-by: Ralf Roesch <ralf.roesch@rw-gmbh.de>
---
arch/mips/txx9/generic/setup.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/arch/mips/txx9/generic/setup.c b/arch/mips/txx9/generic/setup.c
index ed794c1..cff5578 100644
--- a/arch/mips/txx9/generic/setup.c
+++ b/arch/mips/txx9/generic/setup.c
@@ -835,7 +835,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:
--
1.6.3.3
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 1/8] arch/mips/txx9: introduce missing kfree, iounmap, Julia Lawall |
|---|---|
| Next by Date: | [PATCH] cpmac: fix compilation errors against undeclared BUS_ID_SIZE, Florian Fainelli |
| Previous by Thread: | [PATCH 00/11] Add support for GCC's __builtin_unreachable() and use it in BUG (v2)., David Daney |
| Next by Thread: | Re: [PATCH] MIPS: TXx9: Fix error handling / Fix for noenexisting gpio_remove., Atsushi Nemoto |
| Indexes: | [Date] [Thread] [Top] [All Lists] |