mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
phy: miphy28lp: unlock on error in miphy28lp_init()
We need to unlock before returning the -EINVAL here. Signed-off-by: Dan Carpenter <[email protected]> Acked-by: Gabriel Fernandez <[email protected]> Signed-off-by: Kishon Vijay Abraham I <[email protected]>
This commit is contained in:
parent
aa39477b56
commit
4e038e8919
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue