Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6248rwl; Tue, 28 Mar 2023 19:42:15 -0700 (PDT) X-Google-Smtp-Source: AK7set9y4Wp+vbK0IrnIN4EHH/tgtUHaJd2DpeQaQZV76SVcZRKdksfA2zAizxHBBi5v1OljijnP X-Received: by 2002:a05:6a20:1221:b0:d9:8b97:a451 with SMTP id v33-20020a056a20122100b000d98b97a451mr14942624pzf.14.1680057735505; Tue, 28 Mar 2023 19:42:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680057735; cv=none; d=google.com; s=arc-20160816; b=HwcQb+tMRJ0agyeU66UCCHjTfAE5+BhgeZ/IQjUW7jTdMzvjVywuUD6KQCr5CJptaT ljqJrXsTUvyzvH+lwjlgi7pC1YM6DH5DzreFT+PtnKIeObuaoM2PtQ63hfkx98wKUbCK 3UzUJZqQW2cR7hG8y8BQRjsCqbPShai+fncrLDIK2bkg/4r8yK670h+cBELl5JPeWOTW uuxiFimrgwy4XEYZtpEt+8OjDIPO+b65KiT1H+POkY84itVA6voybNkDC+3nSbqgaB5D /eLnT1MAtrSIv6BUMpsauoh0YP8eXyd6DWoxU2YUEos97jLRhYZeZNlOVN7wDl0PGE1g kJrg== 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=AOiDL9Y2ml83BLEn20P3SSrioHrKVETfCuYTYAAYWQE=; b=v+fUNgRFt6nU7Hu3Gi38Xe1nD0hccDGmUXtd1sf3aCx1dXc6QE0ceUeXx4GHELIu4C G2L6DiMFgiZqQ48fjoY3IQt9I92xBCLaxySzEQ0RCxlgNbjCDQE4ALU/rwG+tyU62eh+ xLNF4QGdbPdz7q8S5I1W0FD1Pqra3r0cm6F9hKq59MZylu4rKh8E5gLFG+Ow3YwzmTdv E0Zed73cRPxgFbrBNbOR+MueCaq96Ts0cSsHsiFkgeXPnC8j0IYLzWOxFd2O+sTehbc1 7hDLENg9mI9eFP2R6IQnC8Pb1CvEeKez4ZsHqf3uGO4prfFGXrYBjrelsT0CZxpwKUhz mlYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rUsDdFgA; 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 c71-20020a621c4a000000b0062ae6345c6dsi11157736pfc.392.2023.03.28.19.42.04; Tue, 28 Mar 2023 19:42:15 -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=rUsDdFgA; 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 S229960AbjC2CkM (ORCPT + 99 others); Tue, 28 Mar 2023 22:40:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229976AbjC2CkJ (ORCPT ); Tue, 28 Mar 2023 22:40:09 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9424619C; Tue, 28 Mar 2023 19:39:54 -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 2A90BB81F90; Wed, 29 Mar 2023 02:39:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D7452C433EF; Wed, 29 Mar 2023 02:39:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680057591; bh=AOiDL9Y2ml83BLEn20P3SSrioHrKVETfCuYTYAAYWQE=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=rUsDdFgApx/sbdj3+hQJhmThGm3bbG3SZ1aYl0U3QWEnlr8cj49jjgPvY02mSafTx NrFNdqLPQpUADeG8Zfl776KqteAahWczD7Y0e8y/4yKQqcOGa7uoA3lcwOosg48LjU rq7KYe9ryegYsoLKX6zmou74dyzXjAy+1y7hobPcArYBUV9KpXlS1zzM4QGFt+FxZA sGm8r4Rqz6WOSUCtiH5Mc4QQ0LXQ2Vq+CvKEXYW8GjLIeHiDcmIe1+GG3NhS5Ru08H YO2d/HuS9KPCfX2dmyHASlWCZ488XkHNIJzcZaTCAbXCR41R1i4DPnUGxG/TfyYmGJ 3HtE2pfDrEHeg== Message-ID: <7635e7146fa8d07834d84cece41b9408.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230312161512.2715500-22-u.kleine-koenig@pengutronix.de> References: <20230312161512.2715500-1-u.kleine-koenig@pengutronix.de> <20230312161512.2715500-22-u.kleine-koenig@pengutronix.de> Subject: Re: [PATCH 21/30] clk: mvebu: 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:39:49 -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:03) > 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