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: NIrina Tirdea <irina.tirdea@intel.com> Suggested-by: NDaniel Baluta <daniel.baluta@intel.com> Reviewed-by: NSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
Showing
想要评论请 注册 或 登录