Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4447rwl; Tue, 28 Mar 2023 19:39:51 -0700 (PDT) X-Google-Smtp-Source: AKy350ZqYahxnnNiFOZr43dZK0CIsxJYQ6dpdxx0C9qlNVMSAGSQDEspB/C/xIoj0FP6T2euMllC X-Received: by 2002:a17:906:9618:b0:884:3174:119d with SMTP id s24-20020a170906961800b008843174119dmr19957515ejx.14.1680057591518; Tue, 28 Mar 2023 19:39:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680057591; cv=none; d=google.com; s=arc-20160816; b=YegIw/CzYrhZypciWJHkAc6g+vjG+dl5V6QSu60sLPba7w8xiJQIeMR/BJ2zO7K9Pl fpXZWjPRc6yw1dhpR41D3uKfka1XBunjXlLEwR5c+4e08f8I5vvLCwZ/DY/5JG72vUuc vVyUKG/H4L2xORFgMixhCpQQXZiDyh6/+9axGqT4mGUTSFTCHj0G8vnO+LA2qWmQWlrB UjYHA8EkJTD5O5Jd0YqbltTjYhuCIJ1/mexsUj4WxZ9y/g0GEJxLN1ZohLaTm7+Wkbks 8ikBAw2HsLVRowzpMuYpFO0oKH/aerb2kTVIwDcDdDaGolXJirMlPAXnfTlKYCf7T4wJ Tdbg== 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=XMuBj93qwqkhv6yg1fjCzviCrJmlzBLOId2XcYeaDlg=; b=IH0nN2IuRsfB2WANsRwl2hUBZI2a0byYJGnh0k2O74sBarUcw3AWUjhJvCZN8miOiE c/oVhPY2r/z5abkDuqu4Puvg6XYnrie22XfpF2rkNZVB/QWz+3nWjxsT3JDb+WNxJTA8 +mmrSYGpyqvFChihnaWL4rvE4nzpRV8E2BCxwA1orJYviI2xbYuryjoynh7mnaEnxD5G pB3jspOx5cKn4eAUvNCHKTdDFuFrNxShgGcDj15QDIr0zB/KDf4VaqDaKQLM+01hXmLC SeU3tmy5vqFnmbB9XVm5YIXlQY+uZDSu3p6GX2h9DHc/DVbFjzkXwXIikH2Xvit2Topi w43w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iYXNoyxc; 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 b5-20020a1709065e4500b009244d922f27si30400458eju.566.2023.03.28.19.39.27; Tue, 28 Mar 2023 19:39:51 -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=iYXNoyxc; 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 S229875AbjC2ChM (ORCPT + 99 others); Tue, 28 Mar 2023 22:37:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229773AbjC2ChC (ORCPT ); Tue, 28 Mar 2023 22:37:02 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAF4C3C20; Tue, 28 Mar 2023 19:36:51 -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 4A3A3B81F90; Wed, 29 Mar 2023 02:36:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02E5FC4339B; Wed, 29 Mar 2023 02:36:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680057409; bh=XMuBj93qwqkhv6yg1fjCzviCrJmlzBLOId2XcYeaDlg=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=iYXNoyxclNHQoYQgmn+GSm0iDJzcyCYIxJ60eF/pvGwYpi5imFcdFAOrNIFlOKSi1 L3/p4+jyGm/79ImvJ9tka988xJ1cCgxWKcMmiXsJdAWH0beimRvPYE2eLvMVCRJ8kb tB8DyaxcfnF+CwN04yP00B/mBrfQkI7cec8TMgJFf22bWnHOPIs2nkh7LATQkSQzPh EBPfEY+03hkoJEYu5HWGFDpwAGMT+3CRG9aQatwOuWj8PzyPmaZO9u5CEtL7ybORGT 6FqnGrM2kDjs9oad9sKx6MDrDH67H2lHlNzwxm9JqjBp7Lz1HRVXCsWKVG35Exbhew z/0O920DO54Jg== Message-ID: <71e058aa5e3e201ecad388437fcaeeb5.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230312161512.2715500-10-u.kleine-koenig@pengutronix.de> References: <20230312161512.2715500-1-u.kleine-koenig@pengutronix.de> <20230312161512.2715500-10-u.kleine-koenig@pengutronix.de> Subject: Re: [PATCH 09/30] clk: fixed-mmio: 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:36:46 -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:51) > 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