Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9378547rwp; Thu, 20 Jul 2023 04:12:01 -0700 (PDT) X-Google-Smtp-Source: APBJJlHLqyA2BFNI+w1/UQBJYAkzPzJNsCXDziNePG2LNpDCB7+gFmdNPryZDDX6IE3J6bzMv3eg X-Received: by 2002:a17:902:ce87:b0:1b8:417d:d042 with SMTP id f7-20020a170902ce8700b001b8417dd042mr7014106plg.20.1689851521564; Thu, 20 Jul 2023 04:12:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689851521; cv=none; d=google.com; s=arc-20160816; b=FRUUdvNQSCvcrOQKOx79J/mPbAafRrE1iESFx1LEUwXgJfdfpUHPOu8F+Q0D8LD97Y h2ieUVar6k3sGOPyO5wB3phefwS5PqG6zBBDsmR1+MDcMEyeKpARJlkT8Px7iaThN7H/ AePYaZF0QL9jCCtyNGLfQffnLZfQJslsg6wKv9JgrtEM1ojieJhILLm72VEkHUaUarkS MLrC+79i1dt9YQm3KVmHv8oE3T9Xbj1wZsLsbww2dSVdZ4ji/ziB6dY+0dYop24j7wS0 xzFP3G+xKPsODDxkvY3OIZvAQcy92T1DGr8/GIqWr2nrB5mLGA6t7P8qVAdHuigKtq7m 6igA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=xKYUhMR1McdxFbQ4Jo6vuraMtMWIn8Z/zfmypgVmrcY=; fh=4q1GCWmtBD4VGr/5XtWgJJk3Inrf+C7hnAWuQWQezps=; b=lQhRT4p8/5Ws1wYIUZUKz+xvFXb1Ov/eKNCH79ysTp78V6HcSlYVV39I46xzK7G1Zg tW8gA1+Leq3qe2nb5jBf86CqOLfMVWbVyNkKX6MHBIf86+0av3/PPZcUCqvtB8rQqTuV tp1Rl+9r3qTmUOhqzA81Wg9QFcsdUV/QMXhhELUG9aSQoWAdf2QmSvffBJA+OOOxEyc/ 77iAXXpbqMmXTceV7WOt/xImKVBgTpFAps3Us7S605BmpGPYpnz6+PShSTXmdkbhVmPj UyZo+2bljGm5GickTzCi8EHN/PibrgbODs+m31chrdxmv0bwOvKWq52g01VuuwyHzpmv YdbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="tsOv8B+/"; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u8-20020a1709026e0800b001b873b80747si716415plk.39.2023.07.20.04.11.47; Thu, 20 Jul 2023 04:12:01 -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=@linaro.org header.s=google header.b="tsOv8B+/"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231475AbjGTKdI (ORCPT + 99 others); Thu, 20 Jul 2023 06:33:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231636AbjGTKc6 (ORCPT ); Thu, 20 Jul 2023 06:32:58 -0400 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F9FD2718 for ; Thu, 20 Jul 2023 03:32:40 -0700 (PDT) Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-668711086f4so453276b3a.1 for ; Thu, 20 Jul 2023 03:32:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689849158; x=1690453958; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=xKYUhMR1McdxFbQ4Jo6vuraMtMWIn8Z/zfmypgVmrcY=; b=tsOv8B+/t6cC16KWe9C2LxhDAI52NK3+hCr2mhHy5psUUZT826eCwd0faElZmDomg0 0/Y+6a0X0EEP9f65G9w8lUZ4z1aJnul16vxYroSnBn3wp0JL6VoO/O4+YaAIlTZh7ykD sKWBQlvf+BfY7AjSscbM+8n0s4UNALx9dAaJcpE+L7a3LJ6lgUCGJFAAITJ4SRbGpLui yG/8PMQ5m5cUfX8a74aBl7ael2RjuPY8gZc1IGHKmtdSoLfDPfjqL8Mv7huSICRu2CBF lQGvwGcwQXhtPUHuei6DelkyV1gyZGQQx+CBv3g/dLxOn8uWkiUMOhW4HCCrSLLejbOP NFiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689849158; x=1690453958; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xKYUhMR1McdxFbQ4Jo6vuraMtMWIn8Z/zfmypgVmrcY=; b=gg1sOJ54jvnqCg/Mts20kAiQBg0u21RLu+cIn/sMffBZEr2JSj8G28Juj8Qh7oCXjU zznOsGgVECkUBpCnjTeTIk+xAx/R2zSYfv/XT13SG75hq34MC3M4p/2O8Qq0nmKWt48x PyQXijjV4d4rLkM5qpiz9vTQYjiNXNTdyxq87DJtZ3wiPpBK6qHcfAYRJE2CfYPynZfk fqaOhCcL/Z9+8SwDiYRX7VzyWiR52sAARnmg2W+JyMNSBlvXoZJox5+2NzrKD0LoZT95 XyLk8YfNIWKCyLxaDVe5AIc8k2FLx5dJgEhCiO4o+P/io4YhvTXZ4XC8AjZIccvVgLEl abOg== X-Gm-Message-State: ABy/qLbBxexr5LXutOu84ab47SznxU/x17F2Albznx0sdsYSqO47GzKi 2l3sfhcMHgyjs0dD3KWAIWiwjw== X-Received: by 2002:a05:6a21:3291:b0:132:7d91:aadb with SMTP id yt17-20020a056a21329100b001327d91aadbmr6219794pzb.6.1689849157754; Thu, 20 Jul 2023 03:32:37 -0700 (PDT) Received: from localhost ([122.172.87.195]) by smtp.gmail.com with ESMTPSA id m7-20020aa79007000000b006636c4f57a6sm861335pfo.27.2023.07.20.03.32.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jul 2023 03:32:37 -0700 (PDT) Date: Thu, 20 Jul 2023 16:02:35 +0530 From: Viresh Kumar To: Yangtao Li Cc: Yangtao Li , "Rafael J. Wysocki" , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 01/19] cpufreq: sun50i: Convert to platform remove callback returning void Message-ID: <20230720103235.ao3664ibqjksun5u@vireshk-i7> References: <20230712093322.37322-1-frank.li@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230712093322.37322-1-frank.li@vivo.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On 12-07-23, 17:33, 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. > > Trivially convert this driver from always returning zero in the remove > callback to the void returning variant. > > Cc: Uwe Kleine-K?nig > Signed-off-by: Yangtao Li > --- > drivers/cpufreq/sun50i-cpufreq-nvmem.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) Applied all the patches. Thanks. -- viresh