Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp144182rdg; Tue, 10 Oct 2023 06:39:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGVvL/1aq7ar+vCzTYhAQi3gHMMBb/7tzBsJKDY7FxWoqsDeXDLCJkFSUrhkUwZUDslStsI X-Received: by 2002:a05:6358:917:b0:14a:e358:f436 with SMTP id r23-20020a056358091700b0014ae358f436mr22137265rwi.1.1696945142838; Tue, 10 Oct 2023 06:39:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696945142; cv=none; d=google.com; s=arc-20160816; b=uI1fR/5LZD5uuZ2huhwT3n72dokKAeCDN5Ck3NxrqvRTimsnPoQE+ozRX9goDBYoQO +nt3zLK5N9BAUy+WhvLkONWj9eSd5HC+F2a43TX9vY4hJfG02JI3+tsUCNxk0vqXSLYX cpEGDmJSMjRzNQPK/I0xVOOeCkbFeOTCXQCDUBhC2xA887KW+zslItpWDw8OaOnfDCup G6bK+XPqyVc3gXR9uO9wXT75VXXfUCPr4BIcAoZPnkBkoZ055bsdGlc5Gjip3oA98wRV DQbcetEywfqIT42jsHa1p5caCsWOtPU8V5M8P/LMymzdCYQGmytXcJMPwQscgRl4rnVH xksA== 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=vZdhDfzo3xm37n3+RWHgpUkMve28n0iePVPWXPywJU8=; b=BfBfBVLeeWY3JRZvYzlnLcMaecFlk7rImuantA75zOdV57g9Y77AZkOnoLdxS2SNNk jf7YJJZe+YNHgi7bZWhCbcPi0xkRiMmvxPgqKDYvWj9Hy9mAw4ZMxKqRIysc28abS2XE KVVF262MQpuZmy1T0IFHDCzDGeCi7pCeN6Z1Uf0tLzOi7HCU7NH5mbA+qcnVe4OPeEVX +v4GJddAMrXDUMWWaFOlSqepqyFPOvYqewYSv6Sn1PHDrKPecFMwOoqyra7pVdJ8OF9F C6hkLf/F6bcCrQ78qckWBlQLuJjlEhqB1gkxasurMpVvlrI2uiCbloBz7rWk7ccAsn9G f8IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="vjGvr/19"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id bq9-20020a056a000e0900b0068e26ca7f00si9435403pfb.39.2023.10.10.06.39.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 06:39:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="vjGvr/19"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 860A78059790; Tue, 10 Oct 2023 06:38:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232269AbjJJNim (ORCPT + 99 others); Tue, 10 Oct 2023 09:38:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232239AbjJJNil (ORCPT ); Tue, 10 Oct 2023 09:38:41 -0400 Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01F9EB4 for ; Tue, 10 Oct 2023 06:38:40 -0700 (PDT) Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-5a7ab31fb8bso16590917b3.1 for ; Tue, 10 Oct 2023 06:38:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696945119; x=1697549919; 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=vjGvr/19I04ZeEcJtAs+W7J2FJAhYwqz+jcLg7s01KRDzn9Gm31kIwhvIBZyEI2Khm YZl+xtY/gqR1XfvPuPSk3IetQR+AuiZnjiOeEMHuWLCfgRJqjfEbNJXvCDqHQDnSusZs 5AavMQU9VRlBl0vAaSjrF/CH+ClX7ITD128m8m03VnRVUP3gtVWB2vn8TTzHkQu8Cv8N yExQKdCfsy1me4hwZexMNUv4wGJhX8Lvm/x93DXeLKilItU5VCIHIgIzx5CK5pOqeyi3 GHFcdjMDZONGYDN1+u0OvBuVHS63MZA7VHh0Bm9iANtTeA60FMUHWgpsAWniWEnL7pi9 tJlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696945119; x=1697549919; 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=hgn7uHqBx7PIiwxeCjp4Lmcklu2/s/5qETZfr6fhqNVQTYtiDSTb827mdl9qGGRS6W LiMde26ar/tFvAigvZh4MQIrH8KUE9T6R6++v6JINzPaZvUFL24ViqJTsbDLgI0OH3C+ Fc3pHQLxKAuhd+Zc51nfjrk5ZheMSG/uwdeko28kTVCrq580RT/ZPdpgu0Tu+RqDhfsQ mb6THX5FbD37UifMe+8gO/CPBu5SiMYBBh/Cw+luKHHU1nVRGS8Qdo6jNlV1sXGujqCV xRh6Tzb3tw9/AHzbqWg6fpUsjigVc901MIcWY56vlALcXwdPstY/XtZm8Cwg31/GG5Rg LjxQ== X-Gm-Message-State: AOJu0YwDfyc8BFkQCzCS2UgZFVi0krqrhkkiWulXmuAfcXq6ovQBTBvf hLPJFkQgAIamBU15TMG6VwGOKQ6rsma98HM3r2I3Rg== X-Received: by 2002:a81:4f95:0:b0:5a7:b819:648f with SMTP id d143-20020a814f95000000b005a7b819648fmr2909918ywb.4.1696945119170; Tue, 10 Oct 2023 06:38:39 -0700 (PDT) MIME-Version: 1.0 References: <20231009083856.222030-1-u.kleine-koenig@pengutronix.de> <20231009083856.222030-8-u.kleine-koenig@pengutronix.de> In-Reply-To: <20231009083856.222030-8-u.kleine-koenig@pengutronix.de> From: Linus Walleij Date: Tue, 10 Oct 2023 15:38:28 +0200 Message-ID: Subject: Re: [PATCH 07/20] pinctrl: nomadik: abx500: Convert to platform remove callback returning void To: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= Cc: linux-arm-kernel@lists.infradead.org, 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 howler.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 (howler.vger.email [0.0.0.0]); Tue, 10 Oct 2023 06:38:55 -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