Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp38342528rwd; Wed, 12 Jul 2023 06:31:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlFeUFqbtloc694m9mfNl9UvQe9U0NNCEjxiT0tKLMiGO7xAh4RlGiA4UgARNXXkiyPumGf9 X-Received: by 2002:a05:6000:104c:b0:313:e55f:b78c with SMTP id c12-20020a056000104c00b00313e55fb78cmr16464396wrx.21.1689168703008; Wed, 12 Jul 2023 06:31:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689168702; cv=none; d=google.com; s=arc-20160816; b=iR9lI/txX3Pi6wu2b4w7i5DYpbTnMmHqxVRGBZfcu3FINuqYxgNT0RO1B/2t5obN1X Tw/zIFSpfpA/gFvkXcCmHsf7ZCE7vCGdrW1brrRWzUHwPFoqXoTqZ//Lb7lS+VRMnLit Z7IcMmFZjcNVfYXBiFC5GKXqcjeGg+1oQqkY6QBPvdUkJQPh0xD5lVK0thQL5DOuOnUG D/3mdo14JeEM7bkSKos2CmMWmv7iE34bG/O+0segusY5HS6M1p4sXYt/AJq8zraYOv2F KVku/qVna4RnH3XUmZvZkmELcdR2zMWNpKIg4sBQdweyCktUcqjZPwMuUAtWDODmLkW1 94CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=yQaFp6Q8JnAsErdvtGLKGVmSeRFW9PJFijqybA6cMDk=; fh=qV4WntVAGR5X7dB/glqtRIfK5YBRSpBbChq9ju5kn/8=; b=W3xx/YGSPIUC22KgfLUwBWYup6I73FtoS6CKull26yZMYdBLW90LOKalPRXygX51b3 TSjqk+DMnQqM4mAG42esAxbsFwpNBevHBxwOXXGEe5scENPR79pMVMlgl6sEvSwuKCun tUkazQAHlvMV3hHID9I8CwBMQ393cF3AeS5a3/G0DLliRThjpnr5lqoF00XbEOHGn+VF 0W4/XVgx1OP/OiiAf+Tb4JXIktp7JOxfiGYMMotb09J95tC2Ja508gd41WE8lDXrrDff G2eAEWqW9GNmFDcv3QR+P9yr4JgIaVnKjUrvaM0KwGTpXWerP0ORIz25d6X4ZOCWjnSu l2oA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m9-20020aa7c2c9000000b0051e3cc20de5si4606303edp.592.2023.07.12.06.31.19; Wed, 12 Jul 2023 06:31:42 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233258AbjGLMoy (ORCPT + 99 others); Wed, 12 Jul 2023 08:44:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231827AbjGLMoy (ORCPT ); Wed, 12 Jul 2023 08:44:54 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AAF4170E for ; Wed, 12 Jul 2023 05:44:53 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qJZCz-0005Ae-07; Wed, 12 Jul 2023 14:44:41 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1qJZCw-00DtMG-GD; Wed, 12 Jul 2023 14:44:38 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1qJZCv-004IzC-HB; Wed, 12 Jul 2023 14:44:37 +0200 Date: Wed, 12 Jul 2023 14:44:36 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Yangtao Li Cc: Miquel Raynal , "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 02/27] thermal/drivers/armada: Convert to platform remove callback returning void Message-ID: <20230712124436.64lnwv2kuglnbvuz@pengutronix.de> References: <20230712081258.29254-1-frank.li@vivo.com> <20230712081258.29254-2-frank.li@vivo.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5rqmpg5rl7chtpsx" Content-Disposition: inline In-Reply-To: <20230712081258.29254-2-frank.li@vivo.com> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 --5rqmpg5rl7chtpsx Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 12, 2023 at 04:12:33PM +0800, Yangtao Li wrote: > 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 > Cc: Uwe Kleine-K=F6nig > Signed-off-by: Yangtao Li Reviewed-by: Uwe Kleine-K=F6nig Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --5rqmpg5rl7chtpsx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmSuoDQACgkQj4D7WH0S /k6mzgf/XpKByt+Ewo4xvdgoQLiLP2AMe1asCE7Q6NlLXz18dRQ7c/zfeby59HgQ Tqysw5QMkWeKv76fCfLUTZvfH6Vnk1nwdWGdQzKu42OcRZEWHugDWpnJti28CLKd Nf/IcfMi9F/qp6/axd2X2kDq6lfDfXY9nYJbqHYI2dBD79ved6gcI7splbC92FAt CvDKfXMMsCDxrPVJIGfpYCG47NpQwvjL1minSTDh/bOI1blrt6OJxRRAUaZ24LBn FstB8H2e6w+zECEUH8xbJBbbw9AqEZCCTxEj9QcYzbgeXVDcpjlBBMEFYZsem0Zn 73Om5+a1SNPngkKv47/+v+lUrKKgAg== =7ExZ -----END PGP SIGNATURE----- --5rqmpg5rl7chtpsx--