Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp149327rdg; Tue, 10 Oct 2023 06:47:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGoOaHwNxnCfvpG8KGJf8kT6nLMat66bhAEZdgCoW60l2eo5/tGmY+amUGI8FaLTVaPm87x X-Received: by 2002:a17:902:cecb:b0:1c8:7d41:5b87 with SMTP id d11-20020a170902cecb00b001c87d415b87mr15657251plg.50.1696945635852; Tue, 10 Oct 2023 06:47:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696945635; cv=none; d=google.com; s=arc-20160816; b=NGVUYuTVLKiwSZLCV7BaKALgx6aOoWDcMJB4hc5zYyMFnpxTP1jFpE8aVs6FmLj6gs oB4JrmZQb7oP6MFyXZPg56kO/oVmT7C8YY/eYLXfQvqcJmNwSckrLpd5iIOjt/FtF4eN j73cfzrIxHAoBf3JOc5X6Tu8XQNMRuZXs13HPX/wJQl0KEtrSJ+Zb5XAi7Jvdojwzm5N frnc6MLSATpa6Fw/Pm1Tv4d1th1DkcmyEJ4pjQTbsrnKsPiJ3J4y5TEB8bRIBTum0PUi mNl4mQenr9qGySt2ocahj+G/phSNgTrypx2woj6K+W4VNJ9ArVjfnCbRA3nMyk/4WX/U vWZw== 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=QhKuGwDKVVJ1uHYPGN+QFXhh/mXjLZFMf5w0KfHAyW4=; b=rjjwDztr+QnZLQY+CK4wxe4kZXJ5EeXQg8NqSl7AOHq1cstXFcFH4pUczKpJKl+omt oVU7ey2tJnduPRVVxBbeB3zY6qIJG7s1kvk2EELZBNwKzoYn6vK8rL4XRHqo7Gm+x3QI zLR5Ly4cTqMmuWlH4Ik2JSzHLjbMsTuVqj9tpWjvV7K/6MQ/z0ILJNrby+VJ8FiC1qlb 58x5aJdhdEbjoGWIywH8oEc4MdDlHZZJ/RioryL1BSEn3yUX9O1qVXOY48BtvkgMGE6F W0EqI12uJMjJLv/WzUkLTFWDo8BZURWh12xzthcO5AoGOywT1RVCiHRVW0kYQQKfv1Ul uo3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GTUMG2cp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id e6-20020a170902cf4600b001c88e81a54asi9252228plg.325.2023.10.10.06.47.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 06:47:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GTUMG2cp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 4FE1880C777A; Tue, 10 Oct 2023 06:47:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232328AbjJJNqu (ORCPT + 99 others); Tue, 10 Oct 2023 09:46:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232520AbjJJNqf (ORCPT ); Tue, 10 Oct 2023 09:46:35 -0400 Received: from mail-yw1-x1132.google.com (mail-yw1-x1132.google.com [IPv6:2607:f8b0:4864:20::1132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 808E311B for ; Tue, 10 Oct 2023 06:46:00 -0700 (PDT) Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-59f6441215dso69837347b3.2 for ; Tue, 10 Oct 2023 06:46:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696945559; x=1697550359; 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=GTUMG2cpZN4joGYPbhokWog/jJTcMXKbBiDYC6LtZs6lP4a49st7GEBz//heCGpXEw uUh1JjGi0cVxqiFUp4gsCs0D3xajYftcFEY3g7eGUDz6IMaFVoey0gUEc66iZ5tG7+VF cNjWcHtzYIy3Tng6510oTKpqZHbIiDcG+o5TN9vdUuL08nb8XH49zS2+RuymiSZ2I0XO FO60COI84CybG3cawNdzQAHVo8z4l62Q13e0VV7QboHNjv3I+czsSi3JAzSsw3rf5s6d Re4oiOqKsO7eidLsguCgzxVG14cbUV+z0K363YO2KvVBVNjD9UARtCBdQfAeLQR6sS8j 5D0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696945559; x=1697550359; 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=Q+pIZ49ktQHD2hzIt5/d3VMBrj9jq+jaUPUFwLeWZ6P9XkupcFubak8y4yti9V5PIY 3Vvka+mke2NoLdOfGrkzSsWwZbYOSUz3skI2xV7CuVr+RdvOeej11LQjDlgtMsKw5JUP 31FV9MY1HkSvp1FY/PVgMmi4oLSuoZO+D0TgdmGMjwU+Tu0e4K3Xyxd+/gN6ghEaq5H+ uakhCCTUR470qis1dj5Is5tYHPuk9NSqz5OYqR6/2DINgI9pkMIHFJVUMz38d4C9vC6r M1R6/eypEhosSFYKphrzaUlJRH77HeCE/f1V39bBkZaNpRT2/VQ4JdAI9Kva4H/MyZ5r I7Lg== X-Gm-Message-State: AOJu0Yz7ZdEf3XhrQg7Zd/cX9IsjCs2HnvAkj2drWPTo7ClrShQ9dFDP vcBN5Wt8u1Dc7OHxh4lG1Q+SZ3DNdjJAoI+aVhurdQ== X-Received: by 2002:a0d:f5c7:0:b0:59b:d872:5ca8 with SMTP id e190-20020a0df5c7000000b0059bd8725ca8mr17276014ywf.22.1696945559617; Tue, 10 Oct 2023 06:45:59 -0700 (PDT) MIME-Version: 1.0 References: <20231009083856.222030-1-u.kleine-koenig@pengutronix.de> <20231009083856.222030-21-u.kleine-koenig@pengutronix.de> In-Reply-To: <20231009083856.222030-21-u.kleine-koenig@pengutronix.de> From: Linus Walleij Date: Tue, 10 Oct 2023 15:45:48 +0200 Message-ID: Subject: Re: [PATCH 20/20] pinctrl: ti: ti-iodelay: Convert to platform remove callback returning void To: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= Cc: Yangtao Li , Andy Shevchenko , 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,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Tue, 10 Oct 2023 06:47:11 -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