Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1174479ybg; Tue, 2 Jun 2020 03:18:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAJPyhy8Rt00lZ71rcYU77MCGZqe+4NUCze6dkUR0lMOZu0pEP75DR5m2jp5ThAbCFkcq3 X-Received: by 2002:a17:906:344c:: with SMTP id d12mr11139675ejb.130.1591093122937; Tue, 02 Jun 2020 03:18:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591093122; cv=none; d=google.com; s=arc-20160816; b=bNB5TLhQ7hpgrg8i4/x3LMlYJ8NUwzCwL+YqZcMRSjL58zGmBRguN3lnLCXVRqlOr6 egkGLcX8gOAcJN/1jd2r9mU2ZznyUn/TMy0ujboYq3/cMXLLEDVw8Du/eUi99MejHAYr w6YI/usQZKhLkOGxSq1wQSIuFOkbTytEvJxPQ+yAdBvvjX2fCUfkXTJpJ8sRXEFvrpks nk9PnOTCdTxGLSqiDdKnpeNjg+bd97Zm5jnHoO/Ahca7h5jOgcmBywvEUPnq36COyS6d 3hOG64jF7mxdbEASpouP51qzELFGRN0u2ukYxa09oA5MWlIa0gDBbeJEp32yju0kvWLk T1RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=swcbUaccNJ2ObUZSzDpBo9ZauOSwoJRS6exD6gqCrCU=; b=TUN9LqapCGDDvs2umVGw4BxkGSkQv7TZ5TNkrBD/M9MaxmJPePT+ZbI/9abikbhULX +NMjaWFP8Us4V8pXED2wHVX1MNaS/1GdEuG7X80+AfDuY+z7FUQlhTNGyLspdnl/s01N gCweOP/Srl8vPLzbA4Ohe4zktHFfNtj2MbeVm+Tlw39J+S62zQpzWI/zVvGOA8FcxbGx fhV5Tl3WLO2LE6x12BxoE9V069g7+yQugbIXHJ74if9PMtpOtvvAxE96dL0UObn/id3h LC6Qv7Z5I+b9oak+/BMf/WvTevaW3ga1W4OcY4WnjPtmyBwzKQLmpNFSkiZKgOBRsLZ2 vhRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=wIe4ALv9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a17si1185575edx.507.2020.06.02.03.18.20; Tue, 02 Jun 2020 03:18:42 -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; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=wIe4ALv9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726809AbgFBKOb (ORCPT + 99 others); Tue, 2 Jun 2020 06:14:31 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:48384 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725958AbgFBKOa (ORCPT ); Tue, 2 Jun 2020 06:14:30 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 052A6sOo132212; Tue, 2 Jun 2020 10:14:00 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2020-01-29; bh=swcbUaccNJ2ObUZSzDpBo9ZauOSwoJRS6exD6gqCrCU=; b=wIe4ALv9/wRGYJcpZd9qqgLHMvSeZcgLTEcm5c3ySgAUN3hceuT676/SBIgCrwO5bf48 4BEwbgzpQ+dRyHd9kA/vHZvr37YcEcEeMbJAhqgacGLd5JRMzAL0eEqcCwWH6jrYGdO8 NwCsGSBWLbVWQQjl/7kcUEcFxAuDmMXMAatb2bZrZYklzE8U9I7HmFwcAYKdY/Hf/+6J XGm/VoatbZCSE/7UP4E3sKwktbmCArK3Kip9AlqV2csuj2mvJoxtPsDOLtVfXX3g6B5Z VMQOWudXp/fgerBR0d3st98G0eNw3LBTCKbIhYA1gC5zNFmnk1hwIlHE/kI88Ye8CObn 7g== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2120.oracle.com with ESMTP id 31bfem36rr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 02 Jun 2020 10:14:00 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 052A9Oqo014199; Tue, 2 Jun 2020 10:14:00 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3030.oracle.com with ESMTP id 31c12nwney-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 02 Jun 2020 10:14:00 +0000 Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 052ADthu027260; Tue, 2 Jun 2020 10:13:55 GMT Received: from kadam (/41.57.98.10) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 02 Jun 2020 03:13:55 -0700 Date: Tue, 2 Jun 2020 13:13:46 +0300 From: Dan Carpenter To: Christophe JAILLET Cc: aisheng.dong@nxp.com, festevam@gmail.com, shawnguo@kernel.org, stefan@agner.ch, kernel@pengutronix.de, linus.walleij@linaro.org, s.hauer@pengutronix.de, linux-imx@nxp.com, gary.bisson@boundarydevices.com, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] pinctrl: freescale: imx: Fix an error handling path in 'imx_pinctrl_probe()' Message-ID: <20200602101346.GW30374@kadam> References: <20200530204955.588962-1-christophe.jaillet@wanadoo.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200530204955.588962-1-christophe.jaillet@wanadoo.fr> User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9639 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 phishscore=0 malwarescore=0 adultscore=0 suspectscore=2 spamscore=0 bulkscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006020068 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9639 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 suspectscore=2 mlxlogscore=999 priorityscore=1501 bulkscore=0 phishscore=0 clxscore=1011 impostorscore=0 adultscore=0 spamscore=0 mlxscore=0 lowpriorityscore=0 cotscore=-2147483648 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006020068 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(). regards, dan carpenter