Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp149809rdg; Tue, 10 Oct 2023 06:47:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IElpDOrIU82vS2mfa75V8mAk9Qp+L+e5FDUi88/GcWXrFYyb3QZQyU2ChLBDL95vdjeT0u1 X-Received: by 2002:a05:6e02:1ca8:b0:345:3378:4251 with SMTP id x8-20020a056e021ca800b0034533784251mr24279767ill.23.1696945678948; Tue, 10 Oct 2023 06:47:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696945678; cv=none; d=google.com; s=arc-20160816; b=QkSdgP4gqrj0Kf61fTE6WcBLWtsD+0QenZM3U3NlYEXF5Q29/E55a6bZYzAkfai29S UE/G8AqrMk7C4J7y1NyyntwD5205IPGbNqUDY1nFgCC8liPixCjFa+y++tM09lorxGKo RtprAxIOy+N34Ag53WigChcbO4n7GsWyQWEJTvdkdbZNdaBoBR6I07t7LeqK1hWUr6fV IEGC3vWnCclYo/E6SMiuvRfsgLqSUG6c7zhQmTM56nE71Z4WvsVzJxsCrlDhWOjdj9RM DRxzx2scFlkwsyKlo70olKsnMCVdbaF8BkWusWydUPs/ATtdQHXhx+r3gI4X7KM/O38h y0SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=NHv90yeM59s0sxqLXofNmRkQi512BP/YIHCc5n2XRV8=; fh=LbP9OR7GPdO05gL2BCBuLam01QmljGSdicT/36jlIc8=; b=MNoKiziwSqWEz41oyC+Wy9kf9Y0irmKspV205AGITlQyI7bRUO/egkDbH4jPazk/FW jogIIV5nEAjG1TpzUi144PB7ViVgesOPkB1ktSsd3hwYx0pk2ULhxQ4jRcQNuvx8niEO 6uXyk71gukO6DFAAhJThxe2SxLi7fali41W0Iq7VeKUvYYIMbSW4NlbM7m/boFRwmNqn YJ7xRCNMcSEjR5nUELV9tBPHwrwrpRqiW1SbM9Sz5uEsMpcyFqgViBrezHI90eCUcX4D GFmdPexTOPP9tvIgKaUqjpvW/q7sNGRWombHuXbrgc62vWNAOG4n5RnLh8blMBb8XuDI oEkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vxZEcFSc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id m197-20020a633fce000000b00584d16c6439si1487876pga.622.2023.10.10.06.47.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 06:47:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vxZEcFSc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 222618069D92; Tue, 10 Oct 2023 06:46:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232487AbjJJNpA (ORCPT + 99 others); Tue, 10 Oct 2023 09:45:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232592AbjJJNoi (ORCPT ); Tue, 10 Oct 2023 09:44:38 -0400 Received: from mail-yw1-x1133.google.com (mail-yw1-x1133.google.com [IPv6:2607:f8b0:4864:20::1133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19EDF1706 for ; Tue, 10 Oct 2023 06:42:33 -0700 (PDT) Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-579de633419so69441697b3.3 for ; Tue, 10 Oct 2023 06:42:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696945352; x=1697550152; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=NHv90yeM59s0sxqLXofNmRkQi512BP/YIHCc5n2XRV8=; b=vxZEcFScrsEJDK9tv1BoX3DsLYmBSFnmWQoUZH9HVgZWR23OyV7MpwptRhkemKUt/x phtaodpmmAPfMORdd72oCDzQ+ork9hngSy+CKbTHgRXEaqbTMKKrsd8T47QRtIthx0mE rbc2jxDzMtw7EPptU9e7TkHIfIZnz3KCfImR5k0MQ0mEp0N6Rh2pXx1zJElsmHHSzVZl asU9M7XSwyHVYwDhG/vHUiFl07+Qi5A8lQ1xzZxGFEnCaZ0fFge6Rmkxyq4XnMZhsxAj OOag22wF4MQ7EXz8qGVHgD0iUParlwHmdbvj7++W88E0N0q61VCK/qBpxDIXl8dU0gZP Jh6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696945352; x=1697550152; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NHv90yeM59s0sxqLXofNmRkQi512BP/YIHCc5n2XRV8=; b=rit+1wIST5DIH/3GMZ2/70oE4I5dih9u221BOZCqoSo4N8EKwv6PazgFf80aAuGBDK 2jgHkz7Lew6bhKoVmS4NCDpbFTY8rMI89GkpyivI1Z46tgUIJpfgExBS0Rsuder89gya uR+hsn4rPLYkaOxptAdc3LHRspZU/HGci9hfpHqU6/f3O9E2KOU4nzxrxuJ5Nomr81aP i02hBvhomNa/DMRzxdBNMRLQdl5HEfI9X9V3+OEXwnwH3QcnXXg/tYtgfkutjYDOmsYG zdtN7MZCImI8/Elb1pk3SdP9nv2trWAJH0Shp+GIDxhIx3Nkt2xA9YAQ+Il8pbZ9XzEP kb3w== X-Gm-Message-State: AOJu0Yw6nwmltt9c9+FfAnVZq7gtNk+MXHHadFNJ6SupRJVjRnRXOUOb g2gsRYXPKhsZ9RCBIq4xWpr2gtQwkNTnfFV7tXzL3wquUI4X1Vn9HEU= X-Received: by 2002:a81:5e0a:0:b0:59b:bed9:9a3a with SMTP id s10-20020a815e0a000000b0059bbed99a3amr20112991ywb.41.1696945352241; Tue, 10 Oct 2023 06:42:32 -0700 (PDT) MIME-Version: 1.0 References: <20231009083856.222030-1-u.kleine-koenig@pengutronix.de> <20231009083856.222030-15-u.kleine-koenig@pengutronix.de> In-Reply-To: <20231009083856.222030-15-u.kleine-koenig@pengutronix.de> From: Linus Walleij Date: Tue, 10 Oct 2023 15:42:21 +0200 Message-ID: Subject: Re: [PATCH 14/20] pinctrl: tb10x: Convert to platform remove callback returning void To: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 10 Oct 2023 06:46:05 -0700 (PDT) X-Spam-Level: ** On Mon, Oct 9, 2023 at 11:22=E2=80=AFAM Uwe Kleine-K=C3=B6nig 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 ignored (apart > from emitting a warning) 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. Eventually after all drivers > are converted, .remove_new() will be renamed to .remove(). > > Trivially convert this driver from always returning zero in the remove > callback to the void returning variant. > > Signed-off-by: Uwe Kleine-K=C3=B6nig Patch applied. Yours, Linus Walleij