Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4770rwl; Tue, 28 Mar 2023 19:40:19 -0700 (PDT) X-Google-Smtp-Source: AKy350bBlX2aeAG9dpMN+2AGDcAc/Y5N0BhYFNuNCr3DFNIMYuyr73rYP6A7WntDCqlh15bM9H5C X-Received: by 2002:a05:6402:70a:b0:4fb:9b54:ccb8 with SMTP id w10-20020a056402070a00b004fb9b54ccb8mr17966794edx.21.1680057619633; Tue, 28 Mar 2023 19:40:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680057619; cv=none; d=google.com; s=arc-20160816; b=pAHx6OQz2iqqhmbTJhH287GOrC0rDOZrrat5llFtXygxLj2KoDGZRxtvZB5Py/lul1 b4jjEwEVQTOIKPOksHLFTCpcOWjM6Vmjk3ur0Dv2IKk5MiDuArnZaZ5yOOC39DMpf9WW qmAaDVE6BuBmXSz2Ao01CGmsDO9QdWV6hpxrvFcOvSvJDfjV+vr1vUK8eaWiH/wCyVCF g5J5lMWjG0J4BWqNjX8PiAcHP5p+5DIVUC9ADz26NiGwzb4pM7AVEMZfcp4iN7ALGAhN fqbNY/ZRfiG1QlHglAHXrRW+0tZ2jE49q5pDHbgxI/VaF4/1AnHDYPrfRITxu/B0hGR/ WdKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:date:to:cc:from:subject:references :in-reply-to:content-transfer-encoding:mime-version:message-id :dkim-signature; bh=CBOVidRkW5/whhVrkK1w/Zq5SV9hEA/J2CTxiDVR04A=; b=a/AbVgeE+l59KAXy6XnGc0pVOsX4IGE2KurYy1B4Icm2Vao3OQbKCdBKYlFr9OSsbe 2Acx/8T7eA1eSnOSQMWXuMZ/1/KFcn6KGpIP3bdsIa5brkMxse8NfEa75PL6ikYHWJSI kjalM07VLzHLCOUIS5Ny2XKl0ZRoWrFJlODfZwC5FcgovG2vSrzqCKzUcgtJQWHdBRWc hyeifGT/KWNakcDb1Pkg4wwfBT2TtP7+Xtoeg+GDR4WyRaDiwlLm772FTkJr6JD/6qzu pTTeGUPVNFvQJPY47L262rqGKG3UPPanoOZpF5GP9W9unK7V8tTCt/8D50RyUF2k6RbC XVWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ic5dMoQ3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n11-20020aa7c78b000000b004fd3def3e85si30478716eds.180.2023.03.28.19.39.54; Tue, 28 Mar 2023 19:40:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ic5dMoQ3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229491AbjC2CjE (ORCPT + 99 others); Tue, 28 Mar 2023 22:39:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229740AbjC2CjC (ORCPT ); Tue, 28 Mar 2023 22:39:02 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04DC2DE; Tue, 28 Mar 2023 19:38:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 78177B81E4A; Wed, 29 Mar 2023 02:38:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A0F5C433D2; Wed, 29 Mar 2023 02:38:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680057517; bh=CBOVidRkW5/whhVrkK1w/Zq5SV9hEA/J2CTxiDVR04A=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=Ic5dMoQ3vNovEGfy6hFtXDq21LbIkA3M6VegJhpXXAAxMAMEAdDII6IA5nG/AjGNt HutBlwjL20whsIjXARx6wdhi8SEPUzIqPXocugEWuCRKnSfJttqvp6L5V9dFvz3BrR 4dz4c3/QPPrKruguvQOMGAVuMtHLpWaCob4Dtx9tzuvPFOBDS7uHiXgMJxjOXOddoM n3ds0yps/sjM8OfJTW2tqRWMw9swzFon7dbqHV/UzPyj+khD7RG/WYfMs8KL9tHD/Z Gue+gROKlspi2hfsM3b9M37U/EAGuwmqHilLtE8bAJIsibpejwK0UDmEMGYQ9aHg61 mI6c5h2JZnUsA== Message-ID: <59f8786822d13088fe2b5646edef5829.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230312161512.2715500-17-u.kleine-koenig@pengutronix.de> References: <20230312161512.2715500-1-u.kleine-koenig@pengutronix.de> <20230312161512.2715500-17-u.kleine-koenig@pengutronix.de> Subject: Re: [PATCH 16/30] clk: stm32mp1: Convert to platform remove callback returning void From: Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org To: Alexandre Torgue , Maxime Coquelin , Michael Turquette , Uwe =?utf-8?q?Kleine-K=C3=B6nig?= Date: Tue, 28 Mar 2023 19:38:35 -0700 User-Agent: alot/0.10 X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Uwe Kleine-K=C3=B6nig (2023-03-12 09:14:58) > The .remove() callback for a platform driver returns an int which makes > many driver authors wrongly assume it's possible to do error handling by > returning an error code. However the value returned is (mostly) ignored > and this typically results in resource leaks. To improve here there is a > quest to make the remove callback return void. In the first step of this > quest all drivers are converted to .remove_new() which already returns > void. >=20 > Trivially convert this driver from always returning zero in the remove > callback to the void returning variant. >=20 > Signed-off-by: Uwe Kleine-K=C3=B6nig > --- Applied to clk-next