Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4215rwl; Tue, 28 Mar 2023 19:39:34 -0700 (PDT) X-Google-Smtp-Source: AKy350Yzu2IVN0jDMwaJwPXKKeDD9uT3yGQM3acDK34T4/QcGkIWhVTmiP1gDgAjw3l/MP6+Q3bY X-Received: by 2002:a05:6402:181:b0:4bd:8714:cc54 with SMTP id r1-20020a056402018100b004bd8714cc54mr17036082edv.36.1680057574084; Tue, 28 Mar 2023 19:39:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680057574; cv=none; d=google.com; s=arc-20160816; b=J18nuP200r6D6ODHKcjxYn6sNaByj+FUEKkKnjTJwFLXgFXHHzA5QDWsCbsffGDj/x rFgzmVWGCbA9frFLfSyhoUFS4fQiwyhhNa+jcjBf6F+w3l2t/D55df1pDbV6qz97SSVd iBEn+KryV9fbQwTU1Cg9uDtwcY+WCR8m2OrmVv0qzOrUV30L2w+4ZbMwUOU8rO01O3jX EYqPJjzGvlT0g1086QpdF8ICmBJOdW3pnKuf+kMHYDyaejzeuN6MeA3gVVh4qLqlxDX/ g2XIJGBRZp89Qrmzipnpcyg1SevtFQE+lwBcnRZoFvZrGIivV6NcK+1Z2HkeA3B+NCpA 0tNQ== 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=fqol9AsLid7TKC5VtKcvKYzdkXllaaUZYHqhNP2QysY=; b=mRy5ahkAY2+3F3jrjMmQv0PhKyjpEXNS58RXb95elXxMyyqeGdSpTOTKcoZNJKAm0p uhDBx6RCzU86RNQndZgbmTtZ2g06nG28vFJ8/80qwphEztGrEoZsY+Cum9iN4mj13ap2 8WkoEmUFxLLzWebOkT2+UEhVQZywRra/Lmxuj18ga7PGpNPKyFl830zMVYo288uKC60h Um11rxkc806DfgWVOAwJUXDa+1OZ4Cbctu5kptU74KVYZ/o8A2xROvrqe2RFYK5tqRLJ e7IWFPqMGYEF5yiiEfjLg9rOTJT9Qvbk4mtqM5cv81Wk8C3kHeb7A0BEzb4NXr5X4cLF EtqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=f4PYt22S; 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 s21-20020aa7d795000000b004fe96201050si12309694edq.261.2023.03.28.19.39.09; Tue, 28 Mar 2023 19:39:34 -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=f4PYt22S; 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 S229580AbjC2CiB (ORCPT + 99 others); Tue, 28 Mar 2023 22:38:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229740AbjC2CiA (ORCPT ); Tue, 28 Mar 2023 22:38:00 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EC0835A1; Tue, 28 Mar 2023 19:37:42 -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 11156B81EA9; Wed, 29 Mar 2023 02:37:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ADB2AC433D2; Wed, 29 Mar 2023 02:37:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680057459; bh=fqol9AsLid7TKC5VtKcvKYzdkXllaaUZYHqhNP2QysY=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=f4PYt22SBZoRRXOxgiYUNbGRx1gDo4cpTZuFSzBZbvRFuqv19Z3UgEJlnxcXaNzx0 ZGo0Upfk3+1imq6O835ZcfBE+Gdkb2YrKAiDPW3wlCC5lCZSY/EF7CP74PIFOffJem 23DZVj58To/kmLvV4rz2AlE0azUJNk9A6qxpyXsj32Lq7mQaL2osWPZXzuHMUbKhv/ qg2iLWqcQSEpAaz6lHlRnfxPjFS/eljQD5Xv20saLK/nQBc9ultFzcoXknK5boZR04 lVQ0KQEDVDK6Uq6g79uC2pLg60lMFfSFDiPc/Ee0ieMFNRrJgD4X0XgTRd66oqvU87 71FVzXFCwoXUg== Message-ID: <32532b932c7b3b38662a5d3bf72063c9.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230312161512.2715500-14-u.kleine-koenig@pengutronix.de> References: <20230312161512.2715500-1-u.kleine-koenig@pengutronix.de> <20230312161512.2715500-14-u.kleine-koenig@pengutronix.de> Subject: Re: [PATCH 13/30] clk: pwm: 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:37 -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:14:55) > 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