Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5645rwl; Tue, 28 Mar 2023 19:41:30 -0700 (PDT) X-Google-Smtp-Source: AKy350aHwgieI0x+71a4009YlrgGNU2tyE/okMyfJK6ikaXxPvelBi9YjxJmdR1EJhfilCgwK6FO X-Received: by 2002:a17:903:2449:b0:1a1:ca37:525a with SMTP id l9-20020a170903244900b001a1ca37525amr20493096pls.36.1680057689856; Tue, 28 Mar 2023 19:41:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680057689; cv=none; d=google.com; s=arc-20160816; b=aH0cw2st40P0kPR024trxO7OSGh/xmkQXJvyajzZGN2hPWaJT8g0EdiMf2cf+vU+R9 T+sahbTKswM/dvnBfEE0oRbph2EB1B+IXIh6XpVMbF3YT+WFnBzealNPUTyjbHmJxTma g6jtmqCUsQzOIe6HKeCS2bNj6t2dyNMXJS3fs5hBSXdlZGAMBPPzTSI09Et4fAB2DVn+ 3hsuY3cRQ277V5gyVSzP9pEM2UQcvhrRNlMPK7bQw45GhH3ztw6o8HQJOv2kVadlTNWx qFlpwp5CirwvEZ5xXy7kTlLfcPXeAYhRxhkk+ICS3g5JurpNvahbRRD9r70QZKASUWVj vFvw== 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=CaMQ35XV8yS1qRP6pCVhCK5Q0eSKnfCwitxVdmBVpaM=; b=M+N6oz07lVbLNwlQ+5jnLvfMYzleZVwD2tnp3RFbsHAQrXCjpzgOO/nP4So7ISpKQM /IDpqjoAuvM0Bg+mtrwyiLlHnyUFWdBd77EWUU7cyh1vil8d3t0ft8rxWpRh44NQI9jl Uvb5GiWVEPJZxX865olCxzGn3im1JVp+rxKP7Rx/GiJhIRemuWT4aylF61QMWS04YR28 KDu2vCJk9HUnJ3w2ERM3nXYIpDFVDszpalruOGtU2qMQK/WTKTsKMy326hUYZubCwX5J SyK7+nUcxYdINl2clns3a2tPI4pcBSCcsVVklumIFyNThcUN+dtOpRjS8rrW0xzIdjKP 8bsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n3jjCU1C; 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 s11-20020a65644b000000b0050bd9c8922bsi30880518pgv.364.2023.03.28.19.41.18; Tue, 28 Mar 2023 19:41:29 -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=n3jjCU1C; 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 S229974AbjC2Ck7 (ORCPT + 99 others); Tue, 28 Mar 2023 22:40:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229734AbjC2Ck6 (ORCPT ); Tue, 28 Mar 2023 22:40:58 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A06E35A8; Tue, 28 Mar 2023 19:40:35 -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 9D1D8B81F88; Wed, 29 Mar 2023 02:40:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3238FC433D2; Wed, 29 Mar 2023 02:40:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680057624; bh=CaMQ35XV8yS1qRP6pCVhCK5Q0eSKnfCwitxVdmBVpaM=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=n3jjCU1CzUs8+R2hX05V74EN/qbvqSzdk1x/8/YLL09CI2m8zvjirDoIVaqxFbP4g wPeiRI6jebabWbS2C7Fe+u9wkqK4/qLXU0N5p7kG3RJ4/woB0CKc1tSzjMIWo/jdmp vxdgWurQPO5abPEKHqKilrBmLbnSyvIZQ0cu2ZYxFO1a+h8CZtQmQK4j+X/RLgxsVF NeLEDdTPB2fAJ78/0yAQwMefu5ZLgnlg15h/KfRTT1rReC9OMCDPPkezRe8NLdD+sJ iXvRaQ+nIOSTkIsGNfZg6H42GSPHr/OW6fCydd+d0xKDuvFcTa1Ug94sN2zDXQzNWe A4EeBLIbWqVkQ== Message-ID: <21136043a4c745abca60afb206b980f6.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230312161512.2715500-27-u.kleine-koenig@pengutronix.de> References: <20230312161512.2715500-1-u.kleine-koenig@pengutronix.de> <20230312161512.2715500-27-u.kleine-koenig@pengutronix.de> Subject: Re: [PATCH 26/30] clk: tegra: Convert to platform remove callback returning void From: Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org To: Jonathan Hunter , Michael Turquette , Peter De Schrijver , Prashant Gaikwad , Thierry Reding , Uwe =?utf-8?q?Kleine-K=C3=B6nig?= Date: Tue, 28 Mar 2023 19:40:22 -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:08) > 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