hwmon: lis3: Release resources in case of failure
If lis3lv02d_init_device fails, HW resources were not released properly. In case of failure call release_resources if available. Signed-off-by: NSamu Onkalo <samu.p.onkalo@nokia.com> Acked-by: NEric Piel <eric.piel@tremplin-utc.net> Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com>
Showing
想要评论请 注册 或 登录