drivers: phy: Add support for optional phys
authorAndrew Lunn <andrew@lunn.ch>
Tue, 4 Feb 2014 17:33:12 +0000 (18:33 +0100)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:47:46 +0000 (11:47 +0900)
commit7ed704134462c765082362ea8dd8d05cb04f935b
tree8a3ad0edcf591f22b340a1c05e34f532f259bc85
parent0b7f299a8812a1cedb5bf1d6e4f01593201b8236
drivers: phy: Add support for optional phys

Add devm_phy_optional_get and phy_optional_get, which should be used
when the phy is optional. They does not return an error when the phy
does not exist, rather they returns NULL, which is considered as a valid
phy, but results in NOPs when used with the consumer API.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
[backport from upstream commit 788a4d56ff378bff0b8e685d03a962b36903a149]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I76c9bb54d4bd11b742522c91c28f48b82ca4aa41
Documentation/phy.txt
drivers/phy/phy-core.c
include/linux/phy/phy.h