From: Javier Martinez Canillas Date: Tue, 29 Jul 2014 16:28:55 +0000 (+0200) Subject: regulator: core: Get voltage from parent if not available X-Git-Tag: omap-for-v3.17/fixes-against-rc2~156^2~6^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e303996e94b8705c85f3d78f3c094d05b0620c9d;p=pandora-kernel.git regulator: core: Get voltage from parent if not available Load switches are modeled as regulators but they just provide the voltage of their parent input supply. So the drivers for these switches usually don't provide a .get_voltage function handler but there is code in the kernel that assumes that all regulators should be able to provide its current voltage rail. So, if the output voltage for a regulator is not available and it has a parent supply, then pass the voltage of its parent. Signed-off-by: Javier Martinez Canillas Signed-off-by: Mark Brown --- Reading git-diff-tree failed