summaryrefslogtreecommitdiff
path: root/drivers/mfd/tc6393xb.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2010-08-03 07:10:41 +0400
committerSamuel Ortiz <sameo@linux.intel.com>2010-08-12 13:28:05 +0400
commitfa6e4b181c57ae8b18758840b8a8545b3bb1f1d9 (patch)
tree4a6ed814f10551ed9bc1bc8656bc03c7b20dc222 /drivers/mfd/tc6393xb.c
parentb6e6d54cab7633dd2216ede77ccd00cdaebd77ad (diff)
downloadlinux-fa6e4b181c57ae8b18758840b8a8545b3bb1f1d9.tar.xz
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>
Diffstat (limited to 'drivers/mfd/tc6393xb.c')
-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 fcf9068810fb..ef6c42c8917a 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);