phy: miphy28lp: unlock on error in miphy28lp_init()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 16 Dec 2014 23:55:23 +0000 (02:55 +0300)
committerKishon Vijay Abraham I <kishon@ti.com>
Tue, 23 Dec 2014 10:14:31 +0000 (15:44 +0530)
We need to unlock before returning the -EINVAL here.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Gabriel Fernandez <gabriel.fernandez@linaro.org>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-miphy28lp.c

index e34da13885e8c422a7fdecc153d6407c0b52999f..27fa62ce613618debb31fadb6bb50a51d9e65893 100644 (file)
@@ -1050,7 +1050,8 @@ static int miphy28lp_init(struct phy *phy)
                ret = miphy28lp_init_usb3(miphy_phy);
                break;
        default:
-               return -EINVAL;
+               ret = -EINVAL;
+               break;
        }
 
        mutex_unlock(&miphy_dev->miphy_mutex);