Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4859rwl; Tue, 28 Mar 2023 19:40:27 -0700 (PDT) X-Google-Smtp-Source: AKy350Z9wZY/6l/M870ygCpkK2I0T0oaLxIBxOgAnqqzWt0Uq+qg+ZN0xHFtfbf6H02RV6FwcJbw X-Received: by 2002:aa7:d9c7:0:b0:4fc:6a39:d2f2 with SMTP id v7-20020aa7d9c7000000b004fc6a39d2f2mr17686452eds.18.1680057626889; Tue, 28 Mar 2023 19:40:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680057626; cv=none; d=google.com; s=arc-20160816; b=tLTW4J68T4xYAc7yGGK2lyGeojO4cXQdl3ku0xYvJE0yhpzEDXBq5Zjnxb1FJTyHkq hTNbqnmk+X6uR18qpqpvGpNE8ANZP5wUlrDD2eCyQzv0Gs/srSiPwQ8PvGwauHf41qEb svXSb7gMfXRalnXTd41k3hSPpPrDqCc/JOEK43xltFB6hRN9Womwo5FPzpJSW68R5NTs UFnTDgHPsYM6LgoGJ0K7Hq6fpE/wdnbbly3kJhRNOc2gN4GhEkCRT/JCVHLcGECQmXcc 3LDI96Ezp157IWGSVbVPHjvb+n4Pak5NOfDZlHk05vknWKLmZYCVfZPaXZz2zb8O24gf tJ6g== 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=Lwd2eI+IwG7D8Garptk/+K0bkfClzm1cokWixtQ60I4=; b=O1nAQjy3btADmKVukaSfPMolW9SculLGdlancr7qRMkSCgvhSwtKcrg27qJqJtjjEa 65niuAa7qf2dnVZD7uESKr/u6XRRsA9hrWgE1NCCM9grdM4CPkVD11kOQv4XR8xJN0n/ d04jvmT2Fkiime9laVbswXTeebMPUC6E/qnpyKewfVBOEcjv9oUALCufq/dqgQwqDtNX scUbenHy5CiHz3XKWFk1T+pbH30T3+gMPFfO++QKSxVJmSovxkKq9svBHB0j+L3e2wxP q+OX2dveDs5tibKAGeFGbeGbVq0EYjilEh8LA9ZjJssetz1KB+kzsVf29C/NQdk54zkX bHHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="c/1V8dpu"; 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 p4-20020a056402074400b004c5248cbebfsi32113951edy.101.2023.03.28.19.40.02; Tue, 28 Mar 2023 19:40:26 -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="c/1V8dpu"; 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 S229897AbjC2CjG (ORCPT + 99 others); Tue, 28 Mar 2023 22:39:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229903AbjC2CjE (ORCPT ); Tue, 28 Mar 2023 22:39:04 -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 A15DB3AB3; Tue, 28 Mar 2023 19:38:56 -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 E6BAEB81EA9; Wed, 29 Mar 2023 02:38:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9CE14C433D2; Wed, 29 Mar 2023 02:38:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680057533; bh=Lwd2eI+IwG7D8Garptk/+K0bkfClzm1cokWixtQ60I4=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=c/1V8dpudtc+Z+ZuIiXws+dt0gXUh/0jjKJljyzLeyK5y44P3dPe4qqxmSigjim9I ++vdb/PJziUK/8nJyksHpQ4tXk+4nXA1k+R03UyXyCr985Ma4GHpj1+drgqD8QKu15 2/wxpHnaRdZDzwEdB4A9btUFI6FkZQAURjuANpkBLBiRoOWTD+PwJX95g/cOH5hewy eyvFZ6JRqIup9tq4Pa0KwtEUl8sYeK4i2DJUzyHQhdGWc92tb0DiLWGp/JA24drwyN 2L9Hwhg9Cg+W2SH4B5RvRTm2SXAhN84dvzaSuwReYq801fMLTOzMqbccHxJO2+pCLs LUTaUyKcR2G1w== Message-ID: <7aeb8c75ea87f23950d55e980d0ea339.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230312161512.2715500-18-u.kleine-koenig@pengutronix.de> References: <20230312161512.2715500-1-u.kleine-koenig@pengutronix.de> <20230312161512.2715500-18-u.kleine-koenig@pengutronix.de> Subject: Re: [PATCH 17/30] clk: hisilicon: Convert to platform remove callback returning void From: Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org To: Michael Turquette , Uwe =?utf-8?q?Kleine-K=C3=B6nig?= Date: Tue, 28 Mar 2023 19:38:51 -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:59) > 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