Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3718rwl; Tue, 28 Mar 2023 19:38:56 -0700 (PDT) X-Google-Smtp-Source: AKy350aT7oEwGu47IDErKl+fn9oYUyq3H58yQwg3tl5PU7Jz5F424C6gE9/GWlBn6DpiQ9deAVys X-Received: by 2002:a17:907:c609:b0:93f:9b1b:f303 with SMTP id ud9-20020a170907c60900b0093f9b1bf303mr14432268ejc.75.1680057535869; Tue, 28 Mar 2023 19:38:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680057535; cv=none; d=google.com; s=arc-20160816; b=d5GZE1XEcfe90MszyOrHh/Y2FMCTQrDICEDFNeUl2G7hSeUrktpZLoLhDrt4Wca8Sx /rWSLPGEtqkAyfqz9g3elNRH3f0rCbTqfhwN+1SRpGP0YhKdY8VoaQU6z0ZntBDBldek 2RYYHnXVoBCMMgCYUsxWau0lKBqD5+NH89aRlfU8VV77rchxk19h/3eNTlEsdp0CTaDf NnUND3FHw1ShY/SDPD4sfv1AZms5pYs6jDykS9vjD8hoS6t9AZJGCCQ564myi/nVpFyL MJKwynPKQgdirEO/FQkouZOg7ehzgJQsOQUTGrxkpiP2a+Av2JggCejMaLZ+V//8p+ZO g4eQ== 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=GmjrNfc+m1lZ4syNJZ9a1ECJvMeoV+DS/ryEcHWjaL8=; b=a5FsT3aMrjBoNjqwIe6cfJWe1xwfo70gNU0lFtvG1Uuar/hj5tg6YhkukQSPpqPuzp nlZ4TVMrq+D4MewqtU9DhZpux0b04LsJsZwYXzZi7YJWAohueiN20tLuPXN53FZmUEb2 8fQbFJmvtGmdFgzkcYl7PFv0ERe7sYQOhok6lKo+ROWT64EXW+KOnEUfn6mOp591f00/ BDhaOtwWMu7iEKNOv14m7VKAinQ3FaGxRaotVyXes3tsuMW6VCSJkHRTbfwXH76XO6Rt 30fELuH3klH4em9p7K5JfKrx44gBex1AR2uFR87fRESYuxIXI14HEMsO+NqQzx/r3tvl RciQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="oZv/JOHO"; 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 nd12-20020a170907628c00b00933d7a0e4e7si30458277ejc.441.2023.03.28.19.38.31; Tue, 28 Mar 2023 19:38:55 -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="oZv/JOHO"; 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 S229886AbjC2Chu (ORCPT + 99 others); Tue, 28 Mar 2023 22:37:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229878AbjC2Chp (ORCPT ); Tue, 28 Mar 2023 22:37:45 -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 F24193598; Tue, 28 Mar 2023 19:37:30 -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 7494261A3F; Wed, 29 Mar 2023 02:37:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE3F8C433D2; Wed, 29 Mar 2023 02:37:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680057449; bh=GmjrNfc+m1lZ4syNJZ9a1ECJvMeoV+DS/ryEcHWjaL8=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=oZv/JOHOpnRCAhwNJI9nVR9Wp9wtKVPGMWqi2z9aFYOovMBLs1wU21niBmBD8SJq7 2gLo/AeB0vYqrDjfWuQL5W4SzzhYnFk1cF2meJhn6K0rGRn4ME+wbVhuE5xMKS5rR3 0Jbm8DWpKEu+K7OOEdl6pmuJZWrSHTopOVV64CTlbGQDTx0fvB4um/BYz9hPWsyHfT QqCtrBtwkKvTq/IrCyg5etyo7g1+iLReBxj/umCZv+U5/ldais33wvPWOxu+IaAX/3 c1E5pV9U7gXj1qfBLPw5B0HLW9q74JohloS5H4FcVA3K5jCZgCzjCsQZhPoSmrvjh2 AU51oKVH6qX7w== Message-ID: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230312161512.2715500-13-u.kleine-koenig@pengutronix.de> References: <20230312161512.2715500-1-u.kleine-koenig@pengutronix.de> <20230312161512.2715500-13-u.kleine-koenig@pengutronix.de> Subject: Re: [PATCH 12/30] clk: palmas: 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:37:27 -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:54) > 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