From: Irina Tirdea Date: Wed, 10 Dec 2014 16:23:54 +0000 (+0200) Subject: iio: accel: kxcjk-1013: power off device if probe fails X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~83^2~245^2~49 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d02daf738bf01b9d89d4de2b74ed3bc9bebbb40;p=pandora-kernel.git iio: accel: kxcjk-1013: power off device if probe fails When the device is initialized in probe, it is also powered on. If there is an error after the initialization, the device will remain powered on. Power off the device in case probe fails after device initialization. Signed-off-by: Irina Tirdea Suggested-by: Daniel Baluta Reviewed-by: Srinivas Pandruvada Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed