Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5883rwl; Tue, 28 Mar 2023 19:41:48 -0700 (PDT) X-Google-Smtp-Source: AKy350bILp3zhMSjDJ0tXcE0+8GZtqjYEDT3qG5/5b1AUFC05WYU25w/4neoYF64tw9fVVIcfFRC X-Received: by 2002:a62:1dd6:0:b0:625:efa4:4c01 with SMTP id d205-20020a621dd6000000b00625efa44c01mr15224061pfd.3.1680057708530; Tue, 28 Mar 2023 19:41:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680057708; cv=none; d=google.com; s=arc-20160816; b=cfjCEpzAJjVM7fZmx/kiM5zTeQkw1QXtEEb2SKsAvTqfTr8sk0bVtnP6m68bOmR11z sUyzE/DTQgGwAh99h9f6ObFKkTrOGJl4ZtMLyKOcKMpxEBpykwku9288fM6/isu2BAga ZQteVK7GzSWz7d9w0Bu1LL2oIYOPHCGLACbe4XZsmWrdTSFOPZvxR3wbAI3l4c3r9kAe QU0k7OHpE1iuTUuF1zpgtOsC19CmPkvko0tKLyhfDEQP9VeAPO8GlOlbz6sDHPm8UfHU FiO19xdJ/E8GRBSOcGVI+ytYZj/v3XNCxjmFXXxooUJDs5p0nMxS7ZZ1qZXp2NQVzqqh BzGw== 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=z3w8jCQ7oyDDkOoaUxLNZiisOncdpSmRzIZSu+yjkaU=; b=BGmZVyJKkbqkVUvRlWe/gw0QKp+k8EnBBosILkwSLSqCbreJSDnWCEgFgS6zhRI/Pm VE5fWN6eEnDnRcpvVIcOwpPYNjvx5NF8KKTmH4d5H+FEpi18HDxqk18OYWe9FRtz/Gij 13Qc/cxLudC3h7QX+qf09aa3A8QuE+ULafyQOts7E9Fk9JhGz8IriC6kAAAyPdTY/W+e p/YjIhiDtdyFIrivKPDrEBdhIKhL2RfB4IHUpFa9Gci2KJUx92x/HuT7aho0XvAm2SyW shz2EUhgFRFw+QU1C7V/6y0ydw9cDZXXs7K2MV7galVxGo/v5JtWjOrfrM3meZbBk8nK 0svg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Rbyq13eN; 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 bh9-20020a056a02020900b0050c0549c4c6si30518532pgb.764.2023.03.28.19.41.37; Tue, 28 Mar 2023 19:41:48 -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=Rbyq13eN; 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 S229900AbjC2ClQ (ORCPT + 99 others); Tue, 28 Mar 2023 22:41:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229953AbjC2ClO (ORCPT ); Tue, 28 Mar 2023 22:41:14 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83DB33C00; Tue, 28 Mar 2023 19:40:53 -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 4E674B81FAE; Wed, 29 Mar 2023 02:40:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2EFBC433EF; Wed, 29 Mar 2023 02:40:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680057645; bh=z3w8jCQ7oyDDkOoaUxLNZiisOncdpSmRzIZSu+yjkaU=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=Rbyq13eNuuLQkM23s7y+tHwSB/eE0toV7Ft8BAhP0YTHFfrxHTy+mmElac4uFlWmn ZAeL0+acNPDPd/OHa46N3fmQx5LTqiThLq7oenOBQAK/dLl/sSD7Qlik4C1Flw9/70 RXOd7vmqgozsNfkUXne83CzCsRKmHQt+8MGStnrj5S197xCfTH9q9SfCESUTFXgqtk cuJPIk6Kmn6i272YvMHyt3PtIruSpie012s/+vQdrFn4ShotxFA+skdLz7pj6V0M8P FUzU7S7Jg5MNarpdEYsOqmH65IKAgNLE/t8B6wCNDHwuee4AsmhVjbRk0FX/2wYQkr LGuCRNHBuJLcA== Message-ID: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230312161512.2715500-29-u.kleine-koenig@pengutronix.de> References: <20230312161512.2715500-1-u.kleine-koenig@pengutronix.de> <20230312161512.2715500-29-u.kleine-koenig@pengutronix.de> Subject: Re: [PATCH 28/30] clk: uniphier: 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: Kunihiko Hayashi , Masami Hiramatsu , Michael Turquette , Uwe =?utf-8?q?Kleine-K=C3=B6nig?= Date: Tue, 28 Mar 2023 19:40:42 -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:10) > 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