phy: core: Add *release* phy_ops invoked when the consumer relinquishes PHY
authorKishon Vijay Abraham I <kishon@ti.com>
Fri, 5 Apr 2019 11:08:30 +0000 (16:38 +0530)
committerKishon Vijay Abraham I <kishon@ti.com>
Wed, 17 Apr 2019 08:43:17 +0000 (14:13 +0530)
commitfec06b2bc436d1cbc3482becd40f656d46cd22b7
tree87405f207d3eb80846221bc1297999714e953170
parent42c7cb71b5c2b014caab7861f2434f3907900d7c
phy: core: Add *release* phy_ops invoked when the consumer relinquishes PHY

Add a new phy_ops *release* invoked when the consumer relinquishes the
PHY using phy_put/devm_phy_put. The initializations done by the PHY
driver in of_xlate call back can be can be cleaned up here.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-core.c
include/linux/phy/phy.h