From: Mark Brown Date: Sat, 2 Mar 2013 07:33:30 +0000 (+0800) Subject: hwmon: (sht15) Check return value of regulator_enable() X-Git-Tag: v3.2.41~58 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87c7f521968a1491af48d34a4ea6566485e6426c;p=pandora-kernel.git hwmon: (sht15) Check return value of regulator_enable() commit 3e78080f81481aa8340374d5a37ae033c1cf4272 upstream. Not having power is a pretty serious error so check that we are able to enable the supply and error out if we can't. Signed-off-by: Mark Brown Signed-off-by: Guenter Roeck [bwh: Backported to 3.2: driver does not use the devm API to manage memory, so goto err_free_data rather than returning on error] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed