aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/omap-usb-host.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mfd/omap-usb-host.c')
-rw-r--r--drivers/mfd/omap-usb-host.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/mfd/omap-usb-host.c b/drivers/mfd/omap-usb-host.c
index 53450f433f10..b3bb3ac5b045 100644
--- a/drivers/mfd/omap-usb-host.c
+++ b/drivers/mfd/omap-usb-host.c
@@ -700,8 +700,7 @@ static int usbhs_enable(struct device *dev)
700 dev_dbg(dev, "starting TI HSUSB Controller\n"); 700 dev_dbg(dev, "starting TI HSUSB Controller\n");
701 if (!pdata) { 701 if (!pdata) {
702 dev_dbg(dev, "missing platform_data\n"); 702 dev_dbg(dev, "missing platform_data\n");
703 ret = -ENODEV; 703 return -ENODEV;
704 goto end_enable;
705 } 704 }
706 705
707 spin_lock_irqsave(&omap->lock, flags); 706 spin_lock_irqsave(&omap->lock, flags);
@@ -915,7 +914,8 @@ static int usbhs_enable(struct device *dev)
915 914
916end_count: 915end_count:
917 omap->count++; 916 omap->count++;
918 goto end_enable; 917 spin_unlock_irqrestore(&omap->lock, flags);
918 return 0;
919 919
920err_tll: 920err_tll:
921 if (pdata->ehci_data->phy_reset) { 921 if (pdata->ehci_data->phy_reset) {
@@ -931,8 +931,6 @@ err_tll:
931 clk_disable(omap->usbhost_fs_fck); 931 clk_disable(omap->usbhost_fs_fck);
932 clk_disable(omap->usbhost_hs_fck); 932 clk_disable(omap->usbhost_hs_fck);
933 clk_disable(omap->usbhost_ick); 933 clk_disable(omap->usbhost_ick);
934
935end_enable:
936 spin_unlock_irqrestore(&omap->lock, flags); 934 spin_unlock_irqrestore(&omap->lock, flags);
937 return ret; 935 return ret;
938} 936}