Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e038e89 authored by Dan Carpenter's avatar Dan Carpenter Committed by Kishon Vijay Abraham I
Browse files

phy: miphy28lp: unlock on error in miphy28lp_init()



We need to unlock before returning the -EINVAL here.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarGabriel Fernandez <gabriel.fernandez@linaro.org>
Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
parent aa39477b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);