Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7891459rwr; Wed, 10 May 2023 14:19:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Ksdy0VIyuL6VyDbpTNQImNZDeB22KKEi8qjcpYNxHmknXL8s0ozrCe1OZ2WFBO8Icdhxi X-Received: by 2002:a05:6a00:1828:b0:63b:8dcc:84de with SMTP id y40-20020a056a00182800b0063b8dcc84demr21700321pfa.4.1683753567500; Wed, 10 May 2023 14:19:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683753567; cv=none; d=google.com; s=arc-20160816; b=vBTril2lr4PjtIUm8u5/bU7VwFESVlbwQGQ8UVNs3UGejr6G6OcB4dldNeGmSads+a AEwnwI7xd3CkAdt/P148Ocu8UlXlHcEDQjgTY73IGcAj9J4dropveEWCYhWOeYx+yRqO xSTSIrVHTBrjK3X4H/rbnI4xAuBtJsTL/FC8iAfkvlGaty4XEANXGt1DBQUnfO3bqqpI r9zLoBFypCs87kjLoJf2ElFOJAtZLQpmK2+5Eake2M3hqf9DcFyEUGSJg5rbxkJRlEw6 L6YL2BZjDWV1K7pqaCWd42eVB0o84bVvL7R/AydTBwRswaHQZPTGSUx1AmU1xab6FrLG zdXg== 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=tndkleIjyMNiQ8/7vt/ybi9DdjZVS+pTPWE39SqAuQ4=; b=gJneurwbfI7/RUKonaSqB0WLMI0qtHycWrA1lvjFu4WDPJUBM/wgTDYD2BMzLB5dTb JfUhn1jQsny7e3U36go5i6nV/vKxgGywcfZOZ7QuM/M6i8AUKltwqlToYJFfVCwfZfuX BqDeCTWhdiIdQ7iLWqz5Ku8fiml9Q9I0Q4RYvng4cgphxCN5NPcfZ9Prr5sH2BlNReiE umEPb0zWM+Pf2ah0bn8FOy0SRNRRiASbnkcCuS1kUQuKxYqG401KmZOeZOP5jFtRfI9u 7F79fMgdwYpu6UClLFDdghHLTRXy/w3tnQLckFSZPZl5i7p3n9ccsBqd1euYrETidvFK Atbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rfrtV3xr; 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 g13-20020aa79dcd000000b0063d27c285c9si6016283pfq.21.2023.05.10.14.19.14; Wed, 10 May 2023 14:19:27 -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=rfrtV3xr; 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 S229458AbjEJUnl (ORCPT + 99 others); Wed, 10 May 2023 16:43:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236623AbjEJUnj (ORCPT ); Wed, 10 May 2023 16:43:39 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C565672AA; Wed, 10 May 2023 13:43:36 -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 dfw.source.kernel.org (Postfix) with ESMTPS id EC0D56402F; Wed, 10 May 2023 20:43:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4BB84C433D2; Wed, 10 May 2023 20:43:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683751415; bh=tndkleIjyMNiQ8/7vt/ybi9DdjZVS+pTPWE39SqAuQ4=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=rfrtV3xrj0Cw+JJr+SLnl2LDMXdIUr5OlUQvzoQ6CE2+9YjYxQadHapbYsI47bJa3 ErHXCz1BIdWYEFUkIXJFZggD50wGDAV33mRDdtCWrWUTNFfRcaJueAehUtexCPYFvZ mCXO5YCF5s4hw5zbcbK7JUD50lovGRza3M5o52mWKQmkyBtyvdYOM+m0aZ2UvxTeIL DZ4Nt3t03SY/5ZCDbhgus+doxhxrHVaWUosYYrOz4Qx6f4Yl8B1V2GXz9rNdgZfr+W vi9vYZavWCaTDmDldGsjIyAko0eRA5B6S7+mj2sh+PYJCg0Xd4SGt79ajCTTr5uZ6C 5EVRp8mhi3W7Q== Message-ID: <5e0438103c4ec0a2fadb34d7a66b82fc.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230430190233.878921-4-u.kleine-koenig@pengutronix.de> References: <20230430190233.878921-1-u.kleine-koenig@pengutronix.de> <20230430190233.878921-4-u.kleine-koenig@pengutronix.de> Subject: Re: [PATCH v2 3/3] clk: mediatek: Convert all remaining drivers to platform_driver's .remove_new() From: Stephen Boyd Cc: AngeloGioacchino Del Regno , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@pengutronix.de To: Matthias Brugger , Michael Turquette , Uwe =?utf-8?q?Kleine-K=C3=B6nig?= Date: Wed, 10 May 2023 13:43:33 -0700 User-Agent: alot/0.10 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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-04-30 12:02:33) > 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 all mediatek clk drivers 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