From: Axel Lin Date: Mon, 23 May 2011 12:08:10 +0000 (+0800) Subject: regulator: Fix _regulator_get_voltage if get_voltage callback is NULL X-Git-Tag: v3.0-rc1~48^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb220d16f91f8d5fa1450c7af17e028e8cb3f0f1;p=pandora-kernel.git regulator: Fix _regulator_get_voltage if get_voltage callback is NULL In the case of get_voltage callback is NULL, current implementation in _regulator_get_voltage will return -EINVAL. Also returns proper error if ret is negative value. Signed-off-by: Axel Lin Acked-by: Mark Brown Signed-off-by: Liam Girdwood --- Reading git-diff-tree failed