summaryrefslogtreecommitdiffstats
path: root/drivers/ptp
diff options
context:
space:
mode:
authorIrina Tirdea <irina.tirdea@intel.com>2014-12-10 17:23:54 +0100
committerJonathan Cameron <jic23@kernel.org>2014-12-12 13:28:35 +0100
commit9d02daf738bf01b9d89d4de2b74ed3bc9bebbb40 (patch)
tree20ddb717eb9109d5fb475d846b098f9c06f97a45 /drivers/ptp
parentiio: accel: kxcjk-1013: error handling when set mode fails (diff)
downloadlinux-9d02daf738bf01b9d89d4de2b74ed3bc9bebbb40.tar.xz
linux-9d02daf738bf01b9d89d4de2b74ed3bc9bebbb40.zip
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 <irina.tirdea@intel.com> Suggested-by: Daniel Baluta <daniel.baluta@intel.com> Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/ptp')
0 files changed, 0 insertions, 0 deletions