From: Alban Bedel Date: Tue, 20 May 2014 10:12:16 +0000 (+0200) Subject: regulator: core: Fix the init of DT defined fixed regulators X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~28^2~6^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=064d5cd110f94ce41ca5681dcda8b77fa63d5b95;p=pandora-kernel.git regulator: core: Fix the init of DT defined fixed regulators When a regulator is defined using DT and it has a single voltage the regulator init always tries to apply this voltage. However it fails if the regulator isn't settable because it is using an internal low level function. To overcome this we now first query the regulator and only set it if needed. Signed-off-by: Alban Bedel Signed-off-by: Mark Brown --- Reading git-diff-tree failed