On Tue, Feb 04, 2014 at 06:33:11PM +0100, Andrew Lunn wrote: > 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@xxxxxxx> > Tested-by: Gregory CLEMENT <gregory.clement@xxxxxxxxxxxxxxxxxx> > --- > v2 > No change. > v4 > combine !phy and IS_ERR(). > Add Tested-by > --- > Documentation/phy.txt | 6 ++++++ > drivers/phy/phy-core.c | 17 ++++++++++++++++- > 2 files changed, 22 insertions(+), 1 deletion(-) Whole series applied to mvebu/phy_ata-fixes with Kishon's Acks. thx, Jason. -- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html