Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6398rwl; Tue, 28 Mar 2023 19:42:27 -0700 (PDT) X-Google-Smtp-Source: AKy350a9/R+yywWvsgKFD/PFc05UWJi6XtVqDqY1ZSgLBfoN97mTVo3JM94eCcWVTy4D5fA6MnGt X-Received: by 2002:aa7:d611:0:b0:502:30e6:1e47 with SMTP id c17-20020aa7d611000000b0050230e61e47mr13096395edr.13.1680057747564; Tue, 28 Mar 2023 19:42:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680057747; cv=none; d=google.com; s=arc-20160816; b=tFLmeUKIEdGueWhbek5D4pawwu6kgHAlQAygUk8ws06q349rSXQnlLWiKqPlITJi/d j1ANvKFxAs453Kdj+9YyJ7KeLXMjp+WmgMs0U+FPJ6Vmx0BhiYVAC1cpAj2rh75Nng4S Y32puKxyDmfcrwTkarfMf+oSG539MtA/FLAD6BAMxn8nD310OjWo3BS7x6lXEGgsm11k R+jrHqCrFwnxVqrBE3e3Kh/kCjf2ut1LVVvVOiAkh4yebGXn1id6EosLgfePwduAUDnv hkP1FC7t6yvtqUbJMJ4nPrPoZj9QOC8K67qAHCU7MfO9sMlwqw7r/OKzROLxwYJfKZTF cYJA== 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=zuozHBuWCDYNtslDn9v8L/ENdxX4HSBRrx3nqpC+TLI=; b=cPpNDfvxbbD7nyTy4Ywrgnf98mgF6lNxCWUuzM5mIPi6hPgRa/M6bAF9TNlTHxMJyy UfvDWYC5DnQLVENRuv0ruk1S30jfYiyBqn5wL6LMNfW2b9CTqPXPop+XQjKb6EArb2f/ T44oqpMVfIwfQ5z+Uo1NvhHJWnsA24wk0l+MW/GGWGkzo1x7w0mxg5eMFHqHxQ8RAlkl fcF5xfjBB6NKev5QQSqDIYlWIzkse5AoewutH8aMwNR2ixBgYnLIqwTj6sr6qURJw82v CBcwSWvMg/Y7caxEkZiPdR00FexAy+qm5skBSFeLWtWRLiYUWR88+9aXrvuZmrUEiTfB QyWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sURFnNKD; 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 b16-20020a05640202d000b00501d4801fbasi22793582edx.293.2023.03.28.19.42.02; Tue, 28 Mar 2023 19:42:27 -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=sURFnNKD; 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 S230017AbjC2ClZ (ORCPT + 99 others); Tue, 28 Mar 2023 22:41:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229734AbjC2ClW (ORCPT ); Tue, 28 Mar 2023 22:41:22 -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 B6F163590; Tue, 28 Mar 2023 19:41:00 -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 546B461A36; Wed, 29 Mar 2023 02:41:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB03FC433D2; Wed, 29 Mar 2023 02:40:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680057659; bh=zuozHBuWCDYNtslDn9v8L/ENdxX4HSBRrx3nqpC+TLI=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=sURFnNKD06ID3SkW0vhmt03yUajB2M5a4xZWtOHahFa+drcharpla0GvMmjwyZQBD aOZpEQzJIun90MTNTwQOH2+t5PJkiRfluLocpet74Oi99eGEX1lidpNQEhoowskXcT ctbu6H7zudBq3lWhd4KWvUkLeEpRyvj4g91kRsDqOFQiSbwfBjOQesWF7pkHiX+nAj IjoG7DfGgRyYPRoUKlwllXkCxHir4SaflL/6lyaOQBGtzf1TJwJLiJXbIVwO/3+dWt XIISViroTpgAVFQDph9y3pJJK6gTMFJU1iF7WA8mgsjEk1tR5tmgLlsG3NN1YEH99T r13p4js5Pu8OA== Message-ID: <3e31adce4f70aa6a9fbe913b1bcc2b9c.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230312161512.2715500-30-u.kleine-koenig@pengutronix.de> References: <20230312161512.2715500-1-u.kleine-koenig@pengutronix.de> <20230312161512.2715500-30-u.kleine-koenig@pengutronix.de> Subject: Re: [PATCH 29/30] clk: x86: 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:40:57 -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:15:11) > 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