Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3654964pxf; Mon, 29 Mar 2021 08:01:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzf5HkPBxF2Q9OILAmDP5RrSYRbyR6qWW103NpeXPFGGbtzVkpgLsujG54dYVitm5DNmoy+ X-Received: by 2002:a17:906:b7d5:: with SMTP id fy21mr29048288ejb.153.1617030112811; Mon, 29 Mar 2021 08:01:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617030112; cv=none; d=google.com; s=arc-20160816; b=pBq3n6cbHNO98DfqnJDvUQeCGU/0f0Sci3eGUxaZr/mVx5YpM+ZBaDNRfD7K9yCL0L +u71jZzNDGOnK0jTEqn7l0+YjtWvOB9A2EnwK76Q5ean5EGpUFi8jWtMqAYsYQbOdlxx oJCd4evVXDdU5d2vyYu1y2q5rChA4B0f5UNz2lp05+PDqskGNlg2sNeEMFCGY539bjl6 71ReR8DCIxRvpfpMcA/rtinDY8dD/FqP07nxUWuGP52G6uE/7N/9iIv9ZbqfLliyUean Ju1N4wdm2aB6dAIVC5t9z7tJa6PKRVKAqAxWX/be55qO06c+FY3uE37FeGX5H2K3xUPj Ma7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from; bh=xwgB7h7jYJKjAmGLtM9R4srT0B5qYjUnfVzfCkbzidE=; b=zHoqluLcKhP1BGebjkHzUXayhGX+g10rBgUwZGrU0bsl49G72RQ+o+cdUgXhKxMTEz GESm2UP8vm6qPqVcx7Ow35rqjDZk+jNqB39Fs37t4frRkOSQKm7Tk2wUXymjgDDg0q/F YqQ+4BMehFyaCXxyqK47hXnCnRoxT0pEutKCDDXoLDg1yncrKDwPI+ojIZVW/bH9ywv+ g4mnGDuK9dEPjuJ42nqlSyr7dtnHh4mKsRxSpvcYIezxP8xKBlPxNmZFuIgbra9c/eR9 9CW1gagJ4xYQgeLGcirDWLJtkKXQSjIe4ufF+A7UBL6Vgjx+vpqdogHogn3JwgiV+hbj sOUw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x14si12317236edr.255.2021.03.29.08.01.29; Mon, 29 Mar 2021 08:01:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230329AbhC2PAd convert rfc822-to-8bit (ORCPT + 99 others); Mon, 29 Mar 2021 11:00:33 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:33369 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229842AbhC2PAP (ORCPT ); Mon, 29 Mar 2021 11:00:15 -0400 Received: from localhost (91-175-115-186.subs.proxad.net [91.175.115.186]) (Authenticated sender: gregory.clement@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id C8E37240018; Mon, 29 Mar 2021 15:00:12 +0000 (UTC) From: Gregory CLEMENT To: Pali =?utf-8?Q?Roh=C3=A1r?= , Andrew Lunn , Michael Turquette , Stephen Boyd , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Cc: Marek =?utf-8?Q?Beh=C3=BAn?= , Miquel Raynal , Tomasz Maciej Nowak , Luka Perkov , Andre Heider , Vladimir Vid , Russell King , =?utf-8?Q?G=C3=A9rald?= Kerma , Konstantin Porotchkin Subject: Re: [PATCH mvebu v2 09/10] cpufreq: armada-37xx: Remove cur_frequency variable In-Reply-To: <20210114124032.12765-10-pali@kernel.org> References: <20210114124032.12765-1-pali@kernel.org> <20210114124032.12765-10-pali@kernel.org> Date: Mon, 29 Mar 2021 17:00:12 +0200 Message-ID: <87mtumdmyr.fsf@BL-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Pali Rohár writes: > Variable cur_frequency in armada37xx_cpufreq_driver_init() is unused. > > Signed-off-by: Pali Rohár Acked-by: Gregory CLEMENT Thanks, Gregory > --- > drivers/cpufreq/armada-37xx-cpufreq.c | 10 +--------- > 1 file changed, 1 insertion(+), 9 deletions(-) > > diff --git a/drivers/cpufreq/armada-37xx-cpufreq.c b/drivers/cpufreq/armada-37xx-cpufreq.c > index f08281fc525c..f13646d143de 100644 > --- a/drivers/cpufreq/armada-37xx-cpufreq.c > +++ b/drivers/cpufreq/armada-37xx-cpufreq.c > @@ -389,7 +389,7 @@ static int __init armada37xx_cpufreq_driver_init(void) > struct armada_37xx_dvfs *dvfs; > struct platform_device *pdev; > unsigned long freq; > - unsigned int cur_frequency, base_frequency; > + unsigned int base_frequency; > struct regmap *nb_clk_base, *nb_pm_base, *avs_base; > struct device *cpu_dev; > int load_lvl, ret; > @@ -450,14 +450,6 @@ static int __init armada37xx_cpufreq_driver_init(void) > return -EINVAL; > } > > - /* Get nominal (current) CPU frequency */ > - cur_frequency = clk_get_rate(clk); > - if (!cur_frequency) { > - dev_err(cpu_dev, "Failed to get clock rate for CPU\n"); > - clk_put(clk); > - return -EINVAL; > - } > - > dvfs = armada_37xx_cpu_freq_info_get(base_frequency); > if (!dvfs) { > clk_put(clk); > -- > 2.20.1 > -- Gregory Clement, Bootlin Embedded Linux and Kernel engineering http://bootlin.com