Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4887rwl; Tue, 28 Mar 2023 19:40:29 -0700 (PDT) X-Google-Smtp-Source: AKy350Ycw0Fff0eaSI7fyaju/lhV3gfSLw2Z3QrlMZMpVBTmYXFEGoOFtVNrzgiDxz6dNyKvJkou X-Received: by 2002:a17:906:32d5:b0:926:c9e4:f843 with SMTP id k21-20020a17090632d500b00926c9e4f843mr18467447ejk.59.1680057629142; Tue, 28 Mar 2023 19:40:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680057629; cv=none; d=google.com; s=arc-20160816; b=Gci/ebawYse12L832fD/VqiVe8yecXR3tXvslqT/3Qqxx/FYb1BiZ80ye5edE8DFqV W4I3THycY6sQpKprBbcunKdKOkA4Cs2LbyzcaKZLyz1Smewg9RFNK45Xe2mflYlu/OXv Wvye/WevvsBCsIr1fxSyPeLSKQPCp0JobXk6LSSriOGE8jAHZwvjDXwkjuoSQBj2qcaI /dANu4qlLZAy1Gwx9VJ0ZaX2n1R5QghRXzSPv6skkmSv/uf7nF7WlJBeakaKhXwQwOD7 15k3Mx3iUouC8P5Nx0iPLLw487NZe2XqHAqyaRseXHhIs4Ss7q4y4HNJJBrSjTp335Bz Y15A== 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=X0dhzLuUJ5cHqjst/sBdQo/tR2QcJ8NyxEBS4h6WxQo=; b=ZvMq+bxQn7zL1tqyvp9j8AzIEqmww41za7fncG/y5tpPuNLQUyNh9HEIZeR1hNwySE 1BpV1YzSINGbo1uOEbMpaiBo3lxupNoe//sr9zlJdt7XQlcEXtzgRqPfo8rBTbLbQ4Vd oMn2EtyrgAJZeIkl4J3Z46qdG57HTKz67yX6+Dfe3B0UJo6K30uNZ+kOsL59Uuf4Ubf7 I1IJF7BQ53XJCEjCWLmCHwO6FJcD4QLQIrYVb2mPxZKXsuPqfnt1R21sQYHLVuLF2aDp NYVQFfNDs9ggWllZETaSL2RAQ024Kwg1Px3t6WOChfnxwL00GxuRaZiFhM4mcyiiYP6r nF+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=r189eUhM; 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 d23-20020a1709064c5700b0091ee7139ca8si29891120ejw.242.2023.03.28.19.40.04; Tue, 28 Mar 2023 19:40: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=r189eUhM; 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 S229946AbjC2CjY (ORCPT + 99 others); Tue, 28 Mar 2023 22:39:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229966AbjC2CjS (ORCPT ); Tue, 28 Mar 2023 22:39:18 -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 2B4F73C21; Tue, 28 Mar 2023 19:39:09 -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 C5C2FB81E4A; Wed, 29 Mar 2023 02:39:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 838EAC433D2; Wed, 29 Mar 2023 02:39:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680057546; bh=X0dhzLuUJ5cHqjst/sBdQo/tR2QcJ8NyxEBS4h6WxQo=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=r189eUhMU6DgnM+c1XZBTEbSW6KfMfVZl3o1XtgZLZf5VKdz2bJEvEy4/U0sXOS8M joR/gtDmZulwepIqN5ll+nMdUw/hZxMdwP4UpYHASxCZ1MkBOjTxob/TNDaAJ0/NZW VJFcZEoJSNV6ZdWSUwYUzcFkpnxSXErrkeJ4MrcgPdQCB7B2wTUUSqOZjW758XNhpa y0Wt5OCVvyLyKI9jFz7VCvG/+PSwukfwelwk/45rz/lVDHeLaXtSgfrcMKKlW08t2y WJNXlDCVR9IXyXZpX9bQRsiC5fTEgajaxzPsVUIWp1ywNEoS8Wm9kZM3pur4XZMl/Q HJ3w1kXZGOXoA== Message-ID: <780d70173beb315695cedac6c6eafceb.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230312161512.2715500-19-u.kleine-koenig@pengutronix.de> References: <20230312161512.2715500-1-u.kleine-koenig@pengutronix.de> <20230312161512.2715500-19-u.kleine-koenig@pengutronix.de> Subject: Re: [PATCH 18/30] clk: keystone: Convert to platform remove callback returning void From: Stephen Boyd Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org To: Michael Turquette , Nishanth Menon , Santosh Shilimkar , Tero Kristo , Uwe =?utf-8?q?Kleine-K=C3=B6nig?= Date: Tue, 28 Mar 2023 19:39:04 -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:15:00) > 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