Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5267rwl; Tue, 28 Mar 2023 19:41:00 -0700 (PDT) X-Google-Smtp-Source: AKy350bI0BH5E0nTrn7Rr03d5JDxAWsID+mbdbziaw1ibXQ8k2JlGK3+RS1uyDSgn66vWlLDjkVz X-Received: by 2002:a17:903:41cd:b0:1a1:b65a:2072 with SMTP id u13-20020a17090341cd00b001a1b65a2072mr22419985ple.59.1680057660416; Tue, 28 Mar 2023 19:41:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680057660; cv=none; d=google.com; s=arc-20160816; b=gfgWpeGCnMGl8vFORFxkilyHk/hOKWSr7H4Rg1TsBIUjGUw6FVYpL1Xtlj0gHOEdz8 0wM+C9yDm0enL71FYq9ogtpOLvRZkisMfqO3IZm7atGdscqjJK4/6ZGp4105dT3xuxr2 oWRB7GKtkbtD3kxgb1/KiddP41t4WThI8+1ngwhjx1cqrdEsoYDr4qSnWFnKZe3+jNkx xX2g8f4FyuvWBOrzdsWzsCIE48qXS5jqc0qn7/uXllxdohSjejJSooBCgDKPGy1ghHkf wv7oOBqULAAe2jXvyJ3ko0Bp/840faSIYrE52+I90+7048Em+vsFzlFz94htL1sCUsuE 7RxQ== 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=K7paEBB+bHnLz5ptP7eD4tlgak6ZNDD+KEHV0qFL7+E=; b=IwxmdxBQifGMdAXkupKAWjoYW6FkTBhzDqfUrp8WLDVQ9worFnjdj8jEVX3UNMiPaJ sMZ542Uw3Kdj6Tu1wiDCpvSoQHaITLUf1u8wWSgrDLDshX/2gyD7Jouik+rbKd8QMdiS oiA56SdHAA9zUw5/7hgIxJ/mX4p79kpG67oSo9QbjmPeQWK4mjMmL0gnJ17k45UqeBCT PwGS50mSEBTZoW04PdaieKblVoyiL5+KsX5rHODxIlwNziHWqyGBwZv441WrFOpJANWJ 8X6iJTrIxLK841eN9rNBw5EBi4xtqjW4E/Knqa+e18yCxdL2YqQZAMtAc0+phDoP50DI SW9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Q45s9E9m; 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 li11-20020a170903294b00b0019f3c9d839dsi29462891plb.576.2023.03.28.19.40.48; Tue, 28 Mar 2023 19:41:00 -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=Q45s9E9m; 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 S229967AbjC2CkD (ORCPT + 99 others); Tue, 28 Mar 2023 22:40:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229941AbjC2CkA (ORCPT ); Tue, 28 Mar 2023 22:40:00 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C74F12D75; Tue, 28 Mar 2023 19:39:44 -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 63D05B81F88; Wed, 29 Mar 2023 02:39:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24AC9C4339B; Wed, 29 Mar 2023 02:39:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680057582; bh=K7paEBB+bHnLz5ptP7eD4tlgak6ZNDD+KEHV0qFL7+E=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=Q45s9E9mVfaNaGSI3iu/gIjo/aWyVF2j20keL416lpG+kDQlSS8dgRFkhGY7AIETW KKSwfaRGGA+CvtPgGHnCJthsQii9MDjl1XdqI/I9wVcSc1IsN/0aZP+TshOJUcoAYH Pjegzd9hM6jY6rkDEHEgptvh4xXNP5GshqfoXRR7sc2KqE9i5c7Qevb54Ro9kh0zjR g4OLGbN3NJni8t7Wr/6W2w32QOyOpobRxoGE2+xHh3Drk9YmML11teppFUU1ayAWi9 QUq4OsRR+1cmCbbfG/Fn/xo6sXdN2NzzLQESoGfP2/Uj/EdDDrrC5sLpcflggnL3Al 19J3+VRi+a1UA== Message-ID: <54917a133b103f0e71acda6370922c9a.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230312161512.2715500-21-u.kleine-koenig@pengutronix.de> References: <20230312161512.2715500-1-u.kleine-koenig@pengutronix.de> <20230312161512.2715500-21-u.kleine-koenig@pengutronix.de> Subject: Re: [PATCH 20/30] clk: mmp: Convert to platform remove callback returning void From: Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org To: Michael Turquette , Uwe =?utf-8?q?Kleine-K=C3=B6nig?= Date: Tue, 28 Mar 2023 19:39:40 -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:15:02) > 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