Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1554690ybg; Tue, 2 Jun 2020 13:13:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyathtIVkST5nEXt2iyY5pyJQhtcV1viryoRDEuAyOMVBuBe9mRqZh9wDqF/xSoRLqrqOh7 X-Received: by 2002:a05:6402:34e:: with SMTP id r14mr16590381edw.351.1591128839842; Tue, 02 Jun 2020 13:13:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591128839; cv=none; d=google.com; s=arc-20160816; b=Z1COOPpgSfFoWIQWS5UHcLLEKwE6vClnlmKGepMSp4yV6Yh0hVYpzZYGNxFXEhaQRv McObLS3Gj8VbUNhAdOHnkV/27ZDzFXn/GC/s17llBapp3ASGojeYxOUVX+tOum2B8ybC lXtJRmByIH133fJt/H4JAU7jXSL/dZdswrShtPT9IfTgx8N0UU5dJTxCQ/J8AvhwZLT0 hA0ZxKRNOUeY/qsLUddK3r6BGOJW4szDOQt/bFoTcNhxac1BaQ4l5ErBchHoo25F12tK frvkcTAgazUhfDmn0RSM4GirXcp+pHzvXJZQXLCpwAlO20i1CA8jV/sec7XjNqdK0uuG pAMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=4IyuFclXHSaDU5I5mJv8Y0u71ROnNOw8lI+GrebbKN0=; b=jGJWMgRQvClM64+ODUSGt36ZxDV8NUVP0aMIZeWY42yPgxUm+7hWfZo4I/ERATaTXb XhSodFMHA59NUQOOwEN4mVN0OPzcbe6B2DnweC28PyfUcBP9mAjiRMjh5R4Ik3XFaiTw RKM3+AA8P8tGn1mTsmtNpNT7hli4MgZb0khJxwcPVszAi8/FeXxjMbAKU6U7mofKKYan Y4BlM4hMmUidbEAkZx8+FrxUikeZ1HHkiAOd+dHbXwo2L+DZr7UiEYj4FM+T9fBntnsx f3Y5ZEMoG19dUofX3xvmLZUQbY9Y+oEmuCHE24FTHhuu7WlCSqbIreQs1UoIc20vyhuE dNKA== 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 m19si1831576ejr.547.2020.06.02.13.13.35; Tue, 02 Jun 2020 13:13:59 -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 S1728083AbgFBUIG (ORCPT + 99 others); Tue, 2 Jun 2020 16:08:06 -0400 Received: from smtp05.smtpout.orange.fr ([80.12.242.127]:59845 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727794AbgFBUIF (ORCPT ); Tue, 2 Jun 2020 16:08:05 -0400 Received: from [192.168.42.210] ([93.22.133.243]) by mwinf5d52 with ME id mL83220025FEkrh03L83SZ; Tue, 02 Jun 2020 22:08:04 +0200 X-ME-Helo: [192.168.42.210] X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Tue, 02 Jun 2020 22:08:04 +0200 X-ME-IP: 93.22.133.243 Subject: Re: [PATCH] pinctrl: freescale: imx: Fix an error handling path in 'imx_pinctrl_probe()' To: Dan Carpenter Cc: aisheng.dong@nxp.com, festevam@gmail.com, linus.walleij@linaro.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, stefan@agner.ch, gary.bisson@boundarydevices.com, linux-gpio@vger.kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, shawnguo@kernel.org, s.hauer@pengutronix.de, linux-arm-kernel@lists.infradead.org References: <20200530204955.588962-1-christophe.jaillet@wanadoo.fr> <20200602101346.GW30374@kadam> From: Christophe JAILLET Message-ID: <9e186840-aece-cfcc-918a-8441db9f6f7b@wanadoo.fr> Date: Tue, 2 Jun 2020 22:08:02 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: <20200602101346.GW30374@kadam> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 02/06/2020 à 12:13, Dan Carpenter a écrit : > On Sat, May 30, 2020 at 10:49:55PM +0200, Christophe JAILLET wrote: >> 'pinctrl_unregister()' should not be called to undo >> 'devm_pinctrl_register_and_init()', it is already handled by the framework. >> >> This simplifies the error handling paths of the probe function. >> The 'imx_free_resources()' can be removed as well. >> >> Fixes: a51c158bf0f7 ("pinctrl: imx: use radix trees for groups and functions") >> Signed-off-by: Christophe JAILLET >> --- > You didn't introduce this but the: > > ipctl->input_sel_base = of_iomap(np, 0); > > should be changed to devm_of_iomap(). Done as a separated patch. Thx for the review and the comment. CJ > regards, > dan carpenter