Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3019rwl; Tue, 28 Mar 2023 19:37:56 -0700 (PDT) X-Google-Smtp-Source: AKy350ZXDPPaUztW82legzEtwiZK4s4B6RElPUNpgcVZ51lwsminS9UwGezLIPzTGHD6XbTjM5L2 X-Received: by 2002:a17:906:6cc:b0:906:4739:d73e with SMTP id v12-20020a17090606cc00b009064739d73emr928282ejb.2.1680057476214; Tue, 28 Mar 2023 19:37:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680057476; cv=none; d=google.com; s=arc-20160816; b=0UraA2n5wwSQzkoAeJ+dgL7nu6WcJFmmhZKUsF2TBcsTp0/eqsmOZ3j4GtUi9YXlB2 2EWClzE42X8Kf7k7hs17/eIOi8Cn8RVxQNRhkJ5jh8RNI7FSiSI+G35SRmbJER+8wv/I SwX/aGJEVRir9HOxfyz2DpetY3S4/IeVp1S5V95CPSaKXGW23ZvaHxKIVfNC/8dURHSb bHy/fk3bKMMK/u+ee7Hevjo/caDbsXGPqtdf6JTJJsB6TQDZxpKkEW0kZWDDYLuOgeIg VWuOo4+amrmkyPq6XQVfZdmhHkSZVu1yzzbGxkAwHtXRTwRVuu0QTNJYtOLia09+w00X DT+A== 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=gHTsVj20rdPbufdgop3j7YGf1l5BekMM8HKpCwQIt5c=; b=TKjrW1TQ6pXPLMAlhzqyWzpBR3wpygdHQuo/Dep5P7Ta8TZ8O0buEzsQGm8YoRuklx BEWwG47XIfuoRGZis/zjAY+wdhT3Jn2yaqoXoXw7xf1qlCfRDLe+xZ0CTi/h8LGDapKQ TiLWqk2hlfjsxKkmlyFatPpcDpyev0GkGOifTsGSCU/3ivwJNq4vAm0jkw3k9HIno1Jh ePnT/85bu2GSDyqJFdmCZmBTbrqGjp01e261/MiHMXBmO2h7OXrfZBoKiMBE5xCF/CU8 xa2WCQfYwjwSZAmsNJJq8Tg0IceN1boRcmpyAcqjxUlfG+dKEwYVuPO9NElUe2gQMVI/ +cDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mChJ45T+; 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 i5-20020a17090639c500b0092f350cf846si25103231eje.760.2023.03.28.19.37.31; Tue, 28 Mar 2023 19:37:56 -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=mChJ45T+; 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 S229866AbjC2Cg1 (ORCPT + 99 others); Tue, 28 Mar 2023 22:36:27 -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 S229836AbjC2CgX (ORCPT ); Tue, 28 Mar 2023 22:36:23 -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 8E56E30E1; Tue, 28 Mar 2023 19:36:21 -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 2209661A3E; Wed, 29 Mar 2023 02:36:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DD44C433EF; Wed, 29 Mar 2023 02:36:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680057380; bh=gHTsVj20rdPbufdgop3j7YGf1l5BekMM8HKpCwQIt5c=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=mChJ45T+M/gAOuo3FozWl1lj508yaSH93mXEKOD/RcEVHWkkMXZff9DPo8YGqMhs1 SmB0AQacIofIYhmRt5mZxdVl4LZw/mO6ABHjjbrOLqFVqoptuhw9SlQIofH7oG7EwC K9PjUbEi4gU9WY1zBfvyYUP39FdT+bs9dwDljExSghgBkGdvepFG4LN1qjjWfziNiC LQ9eGogA23YOPk+MRSkXoqzEL9Gb+IIr1oc7Io6fmo/Jx9giYe+M2/7UHu4zsvgOdd eGPlBQ+Mrl+NWFLx5aqbOF7BeXZU6S+YWCAC6vLqm2xzV+x5J3/RHuUmG7zXQdIDxj XyRpswznIPtRQ== Message-ID: <29796d215dca31e5757ec0fa19274c18.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230312161512.2715500-8-u.kleine-koenig@pengutronix.de> References: <20230312161512.2715500-1-u.kleine-koenig@pengutronix.de> <20230312161512.2715500-8-u.kleine-koenig@pengutronix.de> Subject: Re: [PATCH 07/30] clk: axm5516: 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:18 -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:49) > 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