Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3292rwl; Tue, 28 Mar 2023 19:38:19 -0700 (PDT) X-Google-Smtp-Source: AKy350ahs94+6Y+2OoLILeNZWuS3kzfRB2l/mdh/wm30U14TKAHsYOVbzw63lZzMJFtb9U3a9OKS X-Received: by 2002:a05:6402:2027:b0:4fd:1f7b:9fbd with SMTP id ay7-20020a056402202700b004fd1f7b9fbdmr699310edb.6.1680057499420; Tue, 28 Mar 2023 19:38:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680057499; cv=none; d=google.com; s=arc-20160816; b=XxMZBhF9Ohm8pYyPf2lGzkYa8nAscOm6zxvvWSkANvir/zpZge9sUHi2CeLsC+L9Pq k/dytFdlY97e6iVfIsCFdlakn94w7FHglDflvN4hhbaTeohc3Flemx3Gw3BDWL4t+cHO SBUkVgQPDZFSPQIKTGK8cA31eLSvUo4bY/C1j+Jrh7jV5+lAm8nvPYsp9GsPUPinhkNC 8+t93699IR7oZXLcyiHULE7teYfBOK5h4MLgCmsqdaBOUK9HqLuTAyYwBxAMNYLzZOjc 3cFZUMqcvuDgU8TYT589LJH7veWAzkcrmECL8cEcvcOtxsqMw6fnMxv6M0zmhaZUiVI3 9pew== 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=YpHtIARkehke6gSfoZyTb5VLm+8gKcPsW/49rHbeS4g=; b=u1eaiXgquxvFLCHn7eLn0uSN7pRmK3ywEIF0irA8peXBtW3YgxbaO+VhSdmERa23Vx Xa/d8/lpKyGSEzpCsfmTPQOBQYuN1/+RqZY5JuNUtUagZ4DrFdo0oOXERh2gPaKOD8af EIU8Hng6aah21ae8B/hKkzLZOFmJoeJMkEYPoOqjwHSDJRjhAxnvFYIwkaQEexzKLzwv rzBWqtsambZhyxZ8LFCtMI5GVMBKNvFnvtIEHkkq+xEEUAeMBjaSFqLVfS85+Hn4n6TP oLAAE5qvakmUXrMO8IvUmyfcozpogMIedlQIPWzVC30ThuE980mj1DJUgbT0a3LSBm5L 3kPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kDiJew8w; 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 r8-20020aa7cfc8000000b005024cdeac4dsi4582201edy.70.2023.03.28.19.37.54; Tue, 28 Mar 2023 19:38:19 -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=kDiJew8w; 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 S229564AbjC2Cgz (ORCPT + 99 others); Tue, 28 Mar 2023 22:36:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229890AbjC2Cgj (ORCPT ); Tue, 28 Mar 2023 22:36:39 -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 B1A3230F2; Tue, 28 Mar 2023 19:36:37 -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 62F72B81F90; Wed, 29 Mar 2023 02:36:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 017A0C4339B; Wed, 29 Mar 2023 02:36:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680057395; bh=YpHtIARkehke6gSfoZyTb5VLm+8gKcPsW/49rHbeS4g=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=kDiJew8wThZPl1sWkPb6TTlAES5qzHo4JoZWqaDRy8rFpmN8MWvBDH3birWB+oguU gQ1UAhRrN9ladyAz7+aoIzYTffa0lXXSgpXv730D2K0pJHlyBRwKICo9N9qrFFDEvz D6dpKJjuAd26HGaOwCNnPpHLv6fPZXsEWNqIQEEBjizaf1Bm7hz6vNPwrxt1Vd8PtJ OQ8KYWfpaQYlYr5zUv2ONUuHYfGoB4G6RiDbNDx5VF2iv+bh4bqsXQTEkD8y8+2Dym OkGSqTL1oyRyEzo/99wFZ2pVzDnfpLH/3KVITy7xBhEjNexQeKr7uo103BF68XtrQL fH+qnWP8uZ1XQ== Message-ID: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230312161512.2715500-9-u.kleine-koenig@pengutronix.de> References: <20230312161512.2715500-1-u.kleine-koenig@pengutronix.de> <20230312161512.2715500-9-u.kleine-koenig@pengutronix.de> Subject: Re: [PATCH 08/30] clk: fixed-factor: 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:36:32 -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:50) > 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