Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3239rwl; Tue, 28 Mar 2023 19:38:16 -0700 (PDT) X-Google-Smtp-Source: AKy350aNs9bJPjdqGdgczs3ckbf/VdkLNw08StSzHOaP8BOXU/gFK1UstXgydY2seqR5VxpQMqP4 X-Received: by 2002:a17:907:8b8b:b0:93e:2289:ecc0 with SMTP id tb11-20020a1709078b8b00b0093e2289ecc0mr15330794ejc.42.1680057496334; Tue, 28 Mar 2023 19:38:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680057496; cv=none; d=google.com; s=arc-20160816; b=GUWk72PvbXw6y4KaE1YiCbZeUq3ZbeOk5iGU2BctcmCFvbZBQSDm0n2pnsPO/NtcTj tHN7CJuv8HNNSXjX8X5PJdXNOkflV102qutEaQlInYx8iY1ePoJWuhubKXhG90wZ70l/ Gzt1Y56piSHByVl18agH6s0+ZcQBztFfCMQcFOmUC96Ini1XGxo/xvw+wBbzTOQ+vXzw tklv8DDuLJFMjPIiS9VChTfBgyjt8V2W+cSin7bUGut8HeaCOk6GSHd6JAjU4efpLeNS tBmjbxl/YTzGJNK6CKMh5nvJIG73XZsbOTnV4lXl2BxZ+XQF5krCNv4DMIDO4i9774I9 2j/w== 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=WmJmMI95xFPjcXFei5n9hmtwuoAolY2//4hi8k3DaZE=; b=oJD0NA/y/4Huw+6FP9pYOF3T45Z07a4Wp3KrhGBs7LFNwpnoS22Q4t7pwSqmLE3YBc zqhQUHS0y7dCme00PXlNmBAJIf4XK+hu2ela4wE3/BbHjY/Kku4El5tIdRZL9PeD9dDJ pOQ/BwAeHNgIRipJmlOOJKEqVBe94nCT8f/jnl+bqaoD1UXLDNu6W3venqDy1KZxHGqr gLehCgnlHwXwxOUPv2bhPUMInpShcRYlxWEe38OUJITCK8FY/LkIBpl0Kx/EISwnt79p JruQtuHUw8B42pP9IV4Q6U4tt4hfg054xXiVkDW9FTI8EZIqhocYlp3Y/Y6HRSjOLqi1 /vlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ESMOgiAl; 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 rp5-20020a170906d96500b00933b506d73esi24516197ejb.475.2023.03.28.19.37.51; Tue, 28 Mar 2023 19:38:16 -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=ESMOgiAl; 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 S229846AbjC2CgP (ORCPT + 99 others); Tue, 28 Mar 2023 22:36:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229836AbjC2CgO (ORCPT ); Tue, 28 Mar 2023 22:36:14 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9212530F2; Tue, 28 Mar 2023 19:36:11 -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 01D9161A34; Wed, 29 Mar 2023 02:36:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 58FFAC433D2; Wed, 29 Mar 2023 02:36:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680057370; bh=WmJmMI95xFPjcXFei5n9hmtwuoAolY2//4hi8k3DaZE=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=ESMOgiAlEsPBL6K9EnK9Jk2VpCe7BgWdi0AHzOo9QbvZamAEks644Sbk1kNy6Y3WP YrRRihZS8mtE1U8zVoazSGbyhGQW0CoOslZgx8PgDtDWOx94TDM47iaIU9Pr8z1Muz rxhrJ2/8PDXR72KrNTZevUuuk6Lv7gc87KlLe0M3w78jYbLF3ORfSjcEvarcVFzS1Q sSH3hMS2vWrgFjJ22tzqXYI4JOQXdLnwmhu4Yky4E1EXwKbgn5+zw3FN6um91VzdgN rxpJz5TLYQIdAt+BcW7Avhk+GqC/UsFbi9fam92BdwEOCNJGqQ3IouEQ9N44bm5vew iFTqSCsQrY/ag== Message-ID: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230312161512.2715500-7-u.kleine-koenig@pengutronix.de> References: <20230312161512.2715500-1-u.kleine-koenig@pengutronix.de> <20230312161512.2715500-7-u.kleine-koenig@pengutronix.de> Subject: Re: [PATCH 06/30] clk: axi-clkgen: 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:08 -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:48) > 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