From: Andrew Lunn Date: Tue, 4 Feb 2014 17:33:11 +0000 (+0100) Subject: drivers: phy: Make NULL a valid phy reference X-Git-Tag: v3.14-rc3~9^2~8^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04c2facad8fee66c981a51852806d8923336f362;p=pandora-kernel.git 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 Tested-by: Gregory CLEMENT Acked-by: Kishon Vijay Abraham I Signed-off-by: Jason Cooper --- Reading git-diff-tree failed