phy: miphy28lp: unlock on error in miphy28lp_init()
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>
This commit is contained in:
Родитель
aa39477b56
Коммит
4e038e8919
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче