Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp87579rwl; Tue, 28 Mar 2023 21:32:34 -0700 (PDT) X-Google-Smtp-Source: AKy350Z+/7LPpy2rKhZluuWXKWlkxfezVyxtSVmVyZlwBJCOMSUIDn+V5sAWqsaVr9oK7Mdj2orB X-Received: by 2002:a17:907:7b9e:b0:8b1:fc:b06d with SMTP id ne30-20020a1709077b9e00b008b100fcb06dmr21078926ejc.77.1680064354314; Tue, 28 Mar 2023 21:32:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680064354; cv=none; d=google.com; s=arc-20160816; b=VE1kHOUgHOVg0ThOiw24aUf3Gv2Q144boIa5nsU8bpqSykPI2IGGvDIe3YghrqnwfG 9z2PqT7+QdcHzJn5wmsiXjQdOpqJl+bIhrFR92AKopyoN09zSgZLumttXqIBlqkRc47F Rzxfj0jFc/uebT8JXXCIpIfo/vOvUv9LaLI3beCXXTVQRDso24xltVrWh2t1gXC8HXmc 8Yr9Dol7Z5+6jgO4H51Aet39urRVj3cf3nfrioigIWnobqSWIeOvznfZfMcA/bzPeXgj 4/s+dSoJ9dM5nFMiCLG8MevHucPItXtDsvOaorTxhjB2/lBIDSzqMh12Y0x6mbYYGOnc ts/Q== 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=ulo/KOO1DX4ComF6xsesEjdZhezIFqB5xY3hlPwEF+g=; b=naCJmxyoTnFrwHefaR5CV3rpdOtVha15vby/lX2TMZzXKgVt6rl8PkgPDcyj2Y35vk XJkEbdAsPenRxvIZ6wOakReCVtYSpqoaLtrI+o5LTHNLdvvqxjtEpXG0vgdLDlHlmEDi 6fW6I/DGdxrioww+crOlBpnAK/QJ+JTSqj062iLAPtTHCmTCOxcK97c1EubvqZ2uJ5f7 J9VUgy+VWv0eg58+vWGXNj6G0NBiBJwDIcsm9QQP86AOHdgZA+Wb6zF3Oyb3Y27wreqa FvcJ3IfM1gSqN+vmAv2+oG8mizuqIsnrlKf2UawRVEFdHw+L99FI9sdwXNmVAlbLOUGc 7lCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cL9aRM1V; 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 vq1-20020a170907a4c100b00933407e3295si28645526ejc.114.2023.03.28.21.32.08; Tue, 28 Mar 2023 21:32: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=cL9aRM1V; 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 S229890AbjC2ENI (ORCPT + 99 others); Wed, 29 Mar 2023 00:13:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229775AbjC2ENG (ORCPT ); Wed, 29 Mar 2023 00:13:06 -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 324CB3AA8 for ; Tue, 28 Mar 2023 21:13:05 -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 B7383619C4 for ; Wed, 29 Mar 2023 04:13:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1CFF2C4339B; Wed, 29 Mar 2023 04:13:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680063184; bh=ulo/KOO1DX4ComF6xsesEjdZhezIFqB5xY3hlPwEF+g=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=cL9aRM1Vmi/20AbydvC54npxkBuz/fsUQKhTHVnMx052oySLmBGcxw+LuVLZ6Un6b 3Sps9hJRRp6rbblDJwyzQwFwURNlVBGXDCgMAscKONEuAsJFz+dN5A8TaIs1Lx2d7T pmNA4YsXUgjSgUHBMnkss/s5ZNRd7D6ZOoHqBBu3dg4nv0BJWcmKc0pHA25WcPeKWc WLCN79vXgRbcRDk9p3SY5RaoXzpxwzeXQRVjA/1hXG+RQA5U2+K+I2cIL4ZNm9z3Ss 28D8UScR6ELEtKvONIBV2s4JNT3mT97gznNVQDec/0DQJUkfFU6h7+T90HLzc7zUaz uyZIwJLB/PSxg== Message-ID: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230306073446.2194048-2-u.kleine-koenig@pengutronix.de> References: <20230306073446.2194048-1-u.kleine-koenig@pengutronix.de> <20230306073446.2194048-2-u.kleine-koenig@pengutronix.de> Subject: Re: [PATCH 1/3] spmi: hisi-spmi-controller: Convert to platform remove callback returning void From: Stephen Boyd Cc: linux-kernel@vger.kernel.org, kernel@pengutronix.de To: Mauro Carvalho Chehab , Uwe =?utf-8?q?Kleine-K=C3=B6nig?= Date: Tue, 28 Mar 2023 21:13:02 -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-05 23:34:44) > 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 spmi-next