diff options
author | Irina Tirdea <irina.tirdea@intel.com> | 2014-12-10 17:23:54 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-12-12 13:28:35 +0100 |
commit | 9d02daf738bf01b9d89d4de2b74ed3bc9bebbb40 (patch) | |
tree | 20ddb717eb9109d5fb475d846b098f9c06f97a45 /drivers/ptp | |
parent | iio: accel: kxcjk-1013: error handling when set mode fails (diff) | |
download | linux-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