phy: core: Get a refcount to phy in devm_of_phy_get_by_index()
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Fri, 4 Dec 2015 02:06:29 +0000 (10:06 +0800)
committerKishon Vijay Abraham I <kishon@ti.com>
Mon, 7 Dec 2015 13:14:02 +0000 (18:44 +0530)
commit708744628ba96ed4dfcac74a985eb66ad551f164
treee188c4d582eca72e004da4a3c7baf12b35d55445
parenta8c24724dd9a31f52c1f7d82530cf4ad3b72cc50
phy: core: Get a refcount to phy in devm_of_phy_get_by_index()

On driver detach, devm_phy_release() will put a refcount to
the phy, so gets a refconut to it before return.

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-core.c