Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2918rwl; Tue, 28 Mar 2023 19:37:47 -0700 (PDT) X-Google-Smtp-Source: AKy350YV4BlIVlnqQLv5mp+hLK7HCntjlz2wznWYFd/TFIXleAQVTjVZgaQYdL4SxK+E3H+ieGyn X-Received: by 2002:a17:906:598:b0:931:cd1b:3c0 with SMTP id 24-20020a170906059800b00931cd1b03c0mr717637ejn.3.1680057467192; Tue, 28 Mar 2023 19:37:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680057467; cv=none; d=google.com; s=arc-20160816; b=triHwwWYXLterdv8ZbZS2CvfIEVsD9sg7N81gmq+ZbM1RBetsjPP/qaNArEAdBc2eK rWroV2UbFNrJpDGltvul0sHzkLvVWsSC8kjpmXoOr2RNaSvenjgMQ7AFukvURCoRIlk9 iM9B18IKUMIFN+BLuSgWRkXJnTmTYp7pls3MeqBhabv/JH2fqF9IBakIw226sCTEjLv8 Vghut2XO8Pc/Pium8DAiA5Qo9s6zUqC23FCOo4jrLpQWXceAkkpoKjIYv1kJqQd1YnbV aDflrO4M3s+AAPnifI/wDTvx4t/6Bd7XbdQiLUPerBC8WD56iPxqrYRt063BXUm8h0y3 G37g== 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=dOPI+7kbiLv+6sjn3CpUFJC87YUYZUOBaNF55nQe+mw=; b=HZCaKzGRLcZIgs280ah4IRL6lYdQ/W4xdWho3fM0WbDiRGqfBef0vLvmEy5/nyQHqj 3fnSDQj0PfNId7L/7WFniOe1Moa1vSMnJgQrJirH4ARyiSrXw53Wv6X1aTEbsyqd25De gc3684IN1hycxo9IDr+BMYB9tsJZv39bXl1PM6nGzUMrO3WsparJ0pAXmvVINzi7XgMZ gkI7khjUXq3zXfY1IcXtY/AErlTHh5DwkcIU9/wm/5TMRXvpESdjRqb+Gl8PcXGhhWTU rQs0TDlezAdP2ECF4AhPFtP1ft+DLReRAQWUTH6lPeGijWK19TjL4Di4yyB+W0zbfaBU Y5wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Upj82R16; 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 o3-20020a170906974300b00930d19a5006si40085544ejy.7.2023.03.28.19.37.22; Tue, 28 Mar 2023 19:37:47 -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=Upj82R16; 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 S229826AbjC2CgC (ORCPT + 99 others); Tue, 28 Mar 2023 22:36:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229836AbjC2CgA (ORCPT ); Tue, 28 Mar 2023 22:36:00 -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 580772D52; Tue, 28 Mar 2023 19:35:58 -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 E0F0661A3F; Wed, 29 Mar 2023 02:35:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44C6EC433EF; Wed, 29 Mar 2023 02:35:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680057357; bh=dOPI+7kbiLv+6sjn3CpUFJC87YUYZUOBaNF55nQe+mw=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=Upj82R16KUjHvPso3W9AG10NnPbO+qslQ/Z0AIPouMCvQFc6JufjqS+rO2Iaxbv9+ UlvNkvMBmqWTd46pIRr/EbQg+8uEOvJdsoAdFhy6bhUqomxT3y6Yv51vzqD8XirZZJ vCOkdBgvvLbo9iHby7s8Xazoj8bUUhJE0VgK3phVv15kABRfc2OEeIhAVErjHzso2s IHcnRxOjVg1gvORYeaMXzRKa+NwQVu3CxUFgYZwN4fY/+ocln5QyxfLLXcIEsYqQP/ xZr4BEUPdBXEgKN6iu2GyXJ2VlOq/pmYbgEGmyPu6vaAzMFk1egHQbfLqo/E/rtI0+ 2eXGBR84p2hAQ== Message-ID: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230312161512.2715500-6-u.kleine-koenig@pengutronix.de> References: <20230312161512.2715500-1-u.kleine-koenig@pengutronix.de> <20230312161512.2715500-6-u.kleine-koenig@pengutronix.de> Subject: Re: [PATCH 05/30] clk: bcm: Convert to platform remove callback returning void From: Stephen Boyd Cc: Broadcom internal kernel review list , linux-clk@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org To: Florian Fainelli , Michael Turquette , Uwe =?utf-8?q?Kleine-K=C3=B6nig?= Date: Tue, 28 Mar 2023 19:35:55 -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:47) > 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