Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp3010223pxb; Tue, 24 Aug 2021 12:52:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyr3ULaT4yyqRlVTxvRMCtqq0i928u94MKb20FbRygmHsR/QcZfc9jwsX4x2MXKvb0T6rME X-Received: by 2002:aa7:d982:: with SMTP id u2mr44427512eds.164.1629834758215; Tue, 24 Aug 2021 12:52:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629834758; cv=none; d=google.com; s=arc-20160816; b=O3ExwyI+pHyunf6KGvHpJo8oiy5qWOsmd++MTkAMW5V4FAIsGp25sCVg0avsI6vdrg 1fSL/5sEOxaY6n7lG3nkC8TcJ+sEugf/Of1FHpBljTZ4V3iaXs6dCYnKSnxy/C1xou+v WLYwR3Ah47X8hvQWQ5Y4Uz0Ap/HIOfQ51pZOwFx6t7dqWjV1B4X/Wf0GRLY1RVEyjxsE kXu9XxXXP4AKd4UfbZIIONJ0M0ZgXAHWvT06yLOBO3J5P6Lq7631HvWDQhU19i0O4mRp h7W2OOAnefjlmewMCv/7iAZ9bx0kCToxD198fSeVrxPZ7+BXm/yzD4soWuPyO0DrFEqW UuDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=t9jGDhzEJX9F9OqxeovqqMNHVr9jz5mHrTMhK7AToOw=; b=yD6hpq35D5uGqrrHnJmTwzOQwF4kTG7MiZOJG388yDfMdj+c7t7VLYzzuH+W5GYaEo 9lB5qIOsmsAB5ffR0LRXhEM8Hmck1xjFxeJXHhGfDlujHT27jpLvVRZY2+SrY2x2Y1v6 8uh/k2Bgb7PwGOGBk8QAeT3gHdC7cD0gn0BCwYzoVXmOnWNeLOf7gCdmV5Kr1bDDUrKZ DJE68jGaC2amBTievqceMAgWcBnloNkzDPAW9qyr7bRxrPBEEdQTpemTuCMkDEzm8K8W mPWJ+1MmQ9DXvGsTH6ZTmbT5vFgagZnbRDJQNe0PhTYXaBS/DQQhBX5wsMiUd8bPzV0x qD9Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gb16si9884200ejc.629.2021.08.24.12.52.14; Tue, 24 Aug 2021 12:52:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229907AbhHXTqY (ORCPT + 99 others); Tue, 24 Aug 2021 15:46:24 -0400 Received: from smtp12.smtpout.orange.fr ([80.12.242.134]:44083 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234352AbhHXTqY (ORCPT ); Tue, 24 Aug 2021 15:46:24 -0400 Received: from [192.168.1.18] ([90.126.253.178]) by mwinf5d35 with ME id lXle250083riaq203XleLH; Tue, 24 Aug 2021 21:45:38 +0200 X-ME-Helo: [192.168.1.18] X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Tue, 24 Aug 2021 21:45:38 +0200 X-ME-IP: 90.126.253.178 Subject: Re: [PATCH] iio: adc128s052: Fix the error handling path of 'adc128_probe()' To: Alexandru Ardelean Cc: Jonathan Cameron , Lars-Peter Clausen , Andy Shevchenko , angelo.compagnucci@gmail.com, linux-iio , LKML , kernel-janitors@vger.kernel.org References: <85189f1cfcf6f5f7b42d8730966f2a074b07b5f5.1629542160.git.christophe.jaillet@wanadoo.fr> From: Christophe JAILLET Message-ID: Date: Tue, 24 Aug 2021 21:45:38 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 23/08/2021 à 08:42, Alexandru Ardelean a écrit : > On Sat, Aug 21, 2021 at 1:43 PM Christophe JAILLET > wrote: >> >> A successful 'regulator_enable()' call should be balanced by a >> corresponding 'regulator_disable()' call in the error handling path of the >> probe, as already done in the remove function. >> >> Update the error handling path accordingly. > > Good catch. > For the fix: > > Reviewed-by: Alexandru Ardelean > > If you want, you can also send a conversion to > devm_iio_device_register() for this driver. > And also move the regulator_disable() on a devm_add_action_or_reset() callback. > Maybe, that's already part of your plan. If so, apologies for the noise :) > Hi, I hadn't planned another step but I can send a follow-up patch for that. CJ