Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7938rwl; Tue, 28 Mar 2023 19:44:32 -0700 (PDT) X-Google-Smtp-Source: AKy350bLpwdSCh1Q/6fdHhln4jaRVUIFcytlsAS696CEdyZphIUF/WPYhzSkT+M6yYG+ja0xTmqF X-Received: by 2002:a17:90b:1647:b0:240:afb6:b07f with SMTP id il7-20020a17090b164700b00240afb6b07fmr140972pjb.1.1680057871824; Tue, 28 Mar 2023 19:44:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680057871; cv=none; d=google.com; s=arc-20160816; b=fzACwACv/J7RAudzmxoFDbo87LrvRnh2n1ihOpeGlc89U2vsQG0PmhUjfkdQ0+OHyJ mWd3E2vnC6ZyT6ElcVhoqiamxZsIIUqvsqepEULpaNhXCgmUkqU3EvqhoAGwjTHF1wcE AO8FU8zPXnno4PtZ7yMjPr20bdWbeWPRnm73ZAVRipdnautWQFm0k3Sak9hjuBpw4Vwq XsX6Hlr2I0FarH2+jdE/ueiILzSwome0Tsttfc1QzgTuT3SyRMEBBP6bbWGCswtzDOSj Jm9P1RBM8klxgHxwQS0u6HceLkqM6AUhK3mLQdDXNT8B7SIDkGItj7m3fidoTDBRyWXn QcwQ== 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=MZ9S2bXCkqcEec/fFS5q2yiWWN9jI0k26KDnSICbdCk=; b=qMz6pmoauAyasJXh/SvpgyVFsrHthrQki5WEH5SB25C7xY3aZy4fQulRsfFmuEje2P JLD9EhqBeSwT+Y1H2WjoP/GxqwzgQDzXKcTu+ReSFf5dBddKRv2T3tFZPBH+/AMjjgV1 OiqB8E+wVcbBmevZotbm8OfwAdKpDNzo/CZAOCxjvrHEwhYOrftJXsgaQGLVXHmdteNt Sp1wCzUXZXqSXkH5WM2COxSuS/UBrVb7OMo0X7+F+b9IEk4GzhoDbPBmFwBCIEm1WuPX qcthbUULP53+L4QHRsoIss0RxYBLuoUCgLK0Di8x+vuWa95W8S1k0/yTniMAxhkYLMm/ FSCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Dqfsa0p+; 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 e16-20020a63db10000000b0050308cba870si30881638pgg.137.2023.03.28.19.44.19; Tue, 28 Mar 2023 19:44:31 -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=Dqfsa0p+; 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 S229885AbjC2Clg (ORCPT + 99 others); Tue, 28 Mar 2023 22:41:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229997AbjC2Cl2 (ORCPT ); Tue, 28 Mar 2023 22:41:28 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 351AC3A87; Tue, 28 Mar 2023 19:41:13 -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 A3073B81F88; Wed, 29 Mar 2023 02:41:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41164C433EF; Wed, 29 Mar 2023 02:41:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680057670; bh=MZ9S2bXCkqcEec/fFS5q2yiWWN9jI0k26KDnSICbdCk=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=Dqfsa0p+kJ+5FiX1p2u0HLL1QqlJBgCJ5NnLWV7ZdPdXjNVSY4mlaX6f1jSFadfK5 4T1AkoYQOL49XQ0XxS0vz9cv58HWwcP/udgvb7IhMRt62ElTpebU0sbydRn863BQ2g yX2zZKr+g0X1P9knBw1mkZcopn315QX1W4MiPyRsJumfbkmAK4qaB2pdfWzDNfSTrK awKDvMw+fPtHgw5TBHiXP7nw5UklVvdDVOPiHkD+WusqYqR6gDaTiS06BsjyRq+rub K8m0d92aYPEhKHBDwyu5f5etYny0zv8by2QaHC9CflAgS2D38c67JdVyu9yUCVawSp fyQ1WAz8yqwrw== Message-ID: <3eda7a33ead72e8051d0ec1542c1891d.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230312161512.2715500-31-u.kleine-koenig@pengutronix.de> References: <20230312161512.2715500-1-u.kleine-koenig@pengutronix.de> <20230312161512.2715500-31-u.kleine-koenig@pengutronix.de> Subject: Re: [PATCH 30/30] clk: xilinx: Convert to platform remove callback returning void From: Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org To: Michael Turquette , Michal Simek , Uwe =?utf-8?q?Kleine-K=C3=B6nig?= Date: Tue, 28 Mar 2023 19:41:08 -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:12) > 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