Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3971rwl; Tue, 28 Mar 2023 19:39:17 -0700 (PDT) X-Google-Smtp-Source: AKy350ZBfz4E3w1wGGI6hcjGB0Pe5ptFGOGCgG03pJKp3hcjowpQRkzcER9zL/K1RACttD3A0Ph9 X-Received: by 2002:aa7:c98b:0:b0:4cd:e84d:1e74 with SMTP id c11-20020aa7c98b000000b004cde84d1e74mr21517519edt.0.1680057556949; Tue, 28 Mar 2023 19:39:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680057556; cv=none; d=google.com; s=arc-20160816; b=TPlj6CGQpiRAhARdST4CIvmaFa3bFinl5zYlbxE6shPSp3xfCsyB2mBMJAnSBoBk3+ vb9f8JEuWEpkPwSORjhMWozy0cWaOFy3MIZNEs7bFUuIUXTb/dY2aMV/nZGOHfvDRQJD sJS9ANAqT+mZrxEV4mK3Ji4NUykvciSTL7LRg6XAr06kzwxrZK66V7LZjsl8WctL7BDz dUuomzNkz9d3oqudbZWSzEayVLa+xyMz8YkAaWjqmSPv/49ysxoqSiRhn8M+tSH1LScx X6/W7f9odAeFj2mjG9Cw2zPBDvylVagRoTebLcy2c+bfgflcBrARlRCi4h1pe9KZ9xkp 1Z4g== 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=bqM3lkt40SglHamR4Qw9WHyCts4GxGWaeZnuP+utrbs=; b=vVSrbwVUitMzXbj8+A1JRPQsN3ieyYjWormtJqqABntQ4ICL7eTLScAmlf8aaZgMXU RZk1S/zSekbwYCEXi41kV98n9bVfjfQHVifLWkuFYBlXeVil10oxMz5gPBffpH3YxJ1m VfOAt23CrF7G6Go8JVgqfnbriD6nkxi+YpJM7e/vBs6lbSL7Kdq/IEOs8xahPOhviYKT n8BjHZkRvzJ39QUXDOwBGByx+YoTpiS//e+1yJbAZ6lNIbL7ynvWtfcGg0OsePH4pBdb pVvvcPDXlZn3RSL6dHnjdk3AuEncAXzqla5wQok3HDq83ezgT9VT3gPmlR82bvwZ/n2Z Uaug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="oh/lgd6I"; 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 w7-20020aa7d287000000b004ad03d31db6si33716420edq.278.2023.03.28.19.38.52; Tue, 28 Mar 2023 19:39:16 -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="oh/lgd6I"; 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 S229522AbjC2Chk (ORCPT + 99 others); Tue, 28 Mar 2023 22:37:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229892AbjC2Che (ORCPT ); Tue, 28 Mar 2023 22:37:34 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C56030F2; Tue, 28 Mar 2023 19:37:21 -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 144E6B81F88; Wed, 29 Mar 2023 02:37:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B1E9CC433D2; Wed, 29 Mar 2023 02:37:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680057438; bh=bqM3lkt40SglHamR4Qw9WHyCts4GxGWaeZnuP+utrbs=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=oh/lgd6IHRiianHd16bDs+XriC9qwCxE6QdZPA/PJGwHxJGv82/U/0Ta7w0fIbxtF DTg/z7RUW9kp/vwj4hGfGYhdt05sWAlOrDe/Ko1rhHvRM0PXSTzCY06Kb5Y4zUZrr8 JInCaHhKwRFeN297IlmqS0iwgvupzXKQQDsJCJcsmOieYcHpfP9m9fMg39Az/hi61A rEgBlM59Z+yRBS6Y95h3MaYfbUHfTCawmLpCEKwBYdpYHkjnWrX2ikxOF9NrRYaz+g IJhlCHxPabgU4Bq9mqnRCEaoh8qdrRhaaYb8x5jRZo3rEzgnMUrzE0JGsGnyJISu0u K1xjcD2mjIwpw== Message-ID: <02d04a128295182f17d8d43a1139aeb0.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230312161512.2715500-12-u.kleine-koenig@pengutronix.de> References: <20230312161512.2715500-1-u.kleine-koenig@pengutronix.de> <20230312161512.2715500-12-u.kleine-koenig@pengutronix.de> Subject: Re: [PATCH 11/30] clk: hsdk-pll: Convert to platform remove callback returning void From: Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org To: Eugeniy Paltsev , Michael Turquette , Uwe =?utf-8?q?Kleine-K=C3=B6nig?= Date: Tue, 28 Mar 2023 19:37:16 -0700 User-Agent: alot/0.10 X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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:53) > 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