From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D4845C433E0 for ; Tue, 2 Jun 2020 20:08:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B3127206E2 for ; Tue, 2 Jun 2020 20:08:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728187AbgFBUIG (ORCPT ); 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