drivers: phy: Add support for optional phys
authorAndrew Lunn <andrew@lunn.ch>
Tue, 4 Feb 2014 17:33:12 +0000 (18:33 +0100)
committerJason Cooper <jason@lakedaemon.net>
Wed, 5 Feb 2014 05:48:43 +0000 (05:48 +0000)
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>

No differences found