]> nv-tegra.nvidia Code Review - linux-3.10.git/commit
drivers: phy: Make NULL a valid phy reference
authorAndrew Lunn <andrew@lunn.ch>
Tue, 4 Feb 2014 17:33:11 +0000 (18:33 +0100)
committerVenkat Moganty <vmoganty@nvidia.com>
Thu, 12 Feb 2015 09:38:25 +0000 (01:38 -0800)
commitfc29d55e5f5bd28e8c78742656c0c89656c11a1f
treedb24636c40d30e362a41c33d14cedd60a751e7c3
parent05b08171c2d326ba034412f200fc87164db589c4
drivers: phy: Make NULL a valid phy reference

The common clock framework considers NULL a valid clock
reference. This makes handling optional clocks simple, in that if the
optional clock is not available, a NULL reference can be used in the
place of a real clock, simplifying the clock consumer.

Extend this concept to the phy consumer API. A NULL can be passed to
the release calls, the phy_init() and phy_exit() calls, and
phy_power_on() and phy_power_off() and a NOP is performed.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
(cherry picked from commit 04c2facad8fee66c981a51852806d8923336f362)

Bug 200024489

Signed-off-by: Rakesh Babu Bodla <rbodla@nvidia.com>
Change-Id: I4469be993728e02766413b0af466c1e1e690bda5
Reviewed-on: http://git-master/r/682486
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Documentation/phy.txt
drivers/phy/phy-core.c