Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4431rwl; Tue, 28 Mar 2023 19:39:50 -0700 (PDT) X-Google-Smtp-Source: AKy350bobUUrki96wDRkOtnxsY35pEYxoxc+tWd4ppUHt40EQR9fH/f1YDOyxgML7WN/F5RDNrUB X-Received: by 2002:a17:907:7784:b0:930:e2c:ddc3 with SMTP id ky4-20020a170907778400b009300e2cddc3mr17804787ejc.72.1680057590327; Tue, 28 Mar 2023 19:39:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680057590; cv=none; d=google.com; s=arc-20160816; b=qM7thUpeH8u6TLzsVWI//C26GVpHFxleDc5MoBMYd+vNwWcowPj5f7J7oDucBtCQ9Z wrckE4afv2Dy1HjfJlNE8ZGSMjhvGnorQfeDOBiCRMLZlEh062Jfaij2wT9vHP/Souyo PX6o8gP6klN1LAFp/2HKodtKdJI8cdzCAl+P/5wrP1cV8XvjU0uvY7yOz1bJgsYbUo/+ pMap/It9wgdaWlaOdkRHeP6/dJZxH/3c0spwXV86gOtXnv+o+nD/85CfaGVblurjTf4k mMgtniTvIntUILZ+4S1Du1TomqBcilNEQkoknsscxhCFiH7holJtddmIIeC92Mz2tJue RuOg== 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=1RFsG6x8eZ36wYfC6N47RWuv4Mkbp0c4c/ba7d+2ep4=; b=wUu3bHTC8GTeSkeD771dUP3kg80u+DP+l/oJmYEsMsIVjAJd1pLuQkAd+LDl+fYsh/ jN8Bc+MMrpq1YN9vwBGTPd97Ck9bJVFv0kw3uAtiXA6Ok4OVCKBJtiO8v9LaS+vXXdnA 4c3+W79KJWqI/oJxCUgpWsYQDxW4BRGj8qixFlAszarR10D9VK8dSwJWRxTyazhIk6/o wyU5qJVgA9kNsF2UpX4CpZfYcuCdByTBlHCAdhORmlyCchdsAEk9M9Cidrd+BnkhqOd7 x8J+nCaszmKlXpIyOU9A2J47qD742jRwynnm+II3CqgLPqRYHWeReCHMWKV7hdVEd7xI IRLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="lnnk8/YZ"; 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 v23-20020aa7d817000000b0049f1fc7bdbcsi28987733edq.624.2023.03.28.19.39.25; Tue, 28 Mar 2023 19:39:50 -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="lnnk8/YZ"; 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 S229877AbjC2CiL (ORCPT + 99 others); Tue, 28 Mar 2023 22:38:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229524AbjC2CiJ (ORCPT ); Tue, 28 Mar 2023 22:38:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C29103AA6; Tue, 28 Mar 2023 19:37:51 -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 dfw.source.kernel.org (Postfix) with ESMTPS id ECF1661A3F; Wed, 29 Mar 2023 02:37:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50CD7C433D2; Wed, 29 Mar 2023 02:37:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680057470; bh=1RFsG6x8eZ36wYfC6N47RWuv4Mkbp0c4c/ba7d+2ep4=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=lnnk8/YZYqFEFWLi0lWET0x+O6KjLcQHhoqrLiA/WNJ7Y8EGyc7Mf77RLxJtztXeH g6ErWEg4iZcwKX5rsT+6IgEGi6DqZ8WZJsrFh0VPAznmI3Jm9mofOxQSqehEzIVnaO 3ZlaASYCDIAaoJO5zANHTDyfwlIVDIXeteEQwr0+FuvqnE+ddrMLXAamPRnIKBCHdy VI6z6OEly7oWSCcjg01O0WSEOit2vf8CUubIC0fmojJi3z60rblKMpBWGE9s04EogD 94YpbL4Dma/SUyzyQl5VdWUg17iv0+HLxtU1I97muYHP000rf0ccKNmy/Jr7wdPRf1 vFG29d7AWfLGQ== Message-ID: <3e542c589fbd57848205a15139457a98.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230312161512.2715500-15-u.kleine-koenig@pengutronix.de> References: <20230312161512.2715500-1-u.kleine-koenig@pengutronix.de> <20230312161512.2715500-15-u.kleine-koenig@pengutronix.de> Subject: Re: [PATCH 14/30] clk: s2mps11: Convert to platform remove callback returning void From: Stephen Boyd Cc: linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org To: Krzysztof Kozlowski , Michael Turquette , Uwe =?utf-8?q?Kleine-K=C3=B6nig?= Date: Tue, 28 Mar 2023 19:37:48 -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:14:56) > 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