summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2010-08-03 11:10:41 +0800
committerSamuel Ortiz <sameo@linux.intel.com>2010-08-12 11:28:05 +0200
commitfa6e4b181c57ae8b18758840b8a8545b3bb1f1d9 (patch)
tree4a6ed814f10551ed9bc1bc8656bc03c7b20dc222
parentb6e6d54cab7633dd2216ede77ccd00cdaebd77ad (diff)
downloadop-kernel-dev-fa6e4b181c57ae8b18758840b8a8545b3bb1f1d9.zip
op-kernel-dev-fa6e4b181c57ae8b18758840b8a8545b3bb1f1d9.tar.gz
mfd: Fix wrong goto labels for tc6393xb error handling
This patch corrects the error handling path. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
-rw-r--r--drivers/mfd/tc6393xb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/tc6393xb.c b/drivers/mfd/tc6393xb.c
index fcf9068..ef6c42c 100644
--- a/drivers/mfd/tc6393xb.c
+++ b/drivers/mfd/tc6393xb.c
@@ -732,9 +732,9 @@ err_gpio_add:
if (tc6393xb->gpio.base != -1)
temp = gpiochip_remove(&tc6393xb->gpio);
tcpd->disable(dev);
-err_clk_enable:
- clk_disable(tc6393xb->clk);
err_enable:
+ clk_disable(tc6393xb->clk);
+err_clk_enable:
iounmap(tc6393xb->scr);
err_ioremap:
release_resource(&tc6393xb->rscr);
OpenPOWER on IntegriCloud