From: Kishon Vijay Abraham I Date: Thu, 27 Aug 2015 09:13:53 +0000 (+0530) Subject: mmc: host: omap_hsmmc: use devm_regulator_get_optional() for vmmc X-Git-Tag: omap-for-v4.3/fixes-rc1~60^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d607f917008;p=pandora-kernel.git mmc: host: omap_hsmmc: use devm_regulator_get_optional() for vmmc Since vmmc can be optional for some platforms, use devm_regulator_get_optional() for vmmc. Now return error only if the return value of devm_regulator_get_optional() is not the same as -ENODEV, since with -EPROBE_DEFER, the regulator can be obtained later and all other errors are fatal. Signed-off-by: Kishon Vijay Abraham I Tested-by: Tony Lindgren Signed-off-by: Ulf Hansson --- Reading git-diff-tree failed