From: Jean Delvare Date: Wed, 14 Apr 2010 14:14:08 +0000 (+0200) Subject: hwmon: (sht15) Properly handle the case CONFIG_REGULATOR=n X-Git-Tag: v2.6.34-rc5~18^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7a78d2c2e2537fd24903e966f34aae50319d587;p=pandora-kernel.git hwmon: (sht15) Properly handle the case CONFIG_REGULATOR=n When CONFIG_REGULATOR isn't set, regulator_get_voltage() returns 0. Properly handle this case by not trusting the value. Reported-by: Jerome Oufella Signed-off-by: Jean Delvare Cc: Jonathan Cameron Acked-by: Mark Brown Cc: stable@kernel.org --- Reading git-diff-tree failed