Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp234437pxb; Thu, 14 Jan 2021 04:46:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3QfOwTfQ2nHitfpq0Zbmh+9BOmVHxVd0WM67OuNcAs1BaeZ5tbi6KpGDADjg2vxtBxMDk X-Received: by 2002:a17:907:961c:: with SMTP id gb28mr4905218ejc.393.1610628369388; Thu, 14 Jan 2021 04:46:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610628369; cv=none; d=google.com; s=arc-20160816; b=W4lnOy56fqf90FbeZea9Km9woBAC6KzRl7K/uhi8sGziZjx+euQFYgMvCnw7BIGEoF 3n/vv+dg8jqasKH4Arpe5zPge6z9QqTuHNF5CuSjyuB0PbeVUsyt/XrX+zowOzB6Av8y CDEH+72SymyMbOiko70SooWBR0VHeuF8m3PQxF5Mv5KtqoGdRBk1Npv9LZAdQPGDPDgk KHsvjRJ53rKdn++WDOe+wG/HVjx0qn3b3lianeaFSwut8ODBgEh/4EEk/EYJV/J6aPWX c/4ACuvxkiuT7467zPDgVBtLd928AI4mBzkQB8BuR7Yut+X9KXoCG5FAhXvfH1SOcKIu gYLQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=yJh02VT/U1iX81qFy81Lg21lhZEpL1fyWLN1U8h9Z9k=; b=u20CDRDb+7GH4JIDDT4EhMZGq+otlET1OqfI3v3ip5McIsZjI1I6zT0hNeybMXAU9M qWJcFm4M4LbfTfpAaDww6DrnmWn8PmgeBLGYglzWOp/2O/HFgoYgan3zTwqdXcJtQK2w SuJe1OhBOjgLlQjz3ud1Wo5r2xoZeoCyGkgiZiq53UM2fmtsUPsrUEh7+bUoGMzeoaYX RAVytPwQxFfvlaV45LVyIyLSJid85dGs1pkGLOrwZhfOIJQIsymxOkreIWGryLFrBX8i OuntXTc9no+07G3c4FvxrjkisTQB11/wLWnTej/N1M4T199ugn/0uh+5rHkE3jmW5+iE bDjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ON8B23mV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f6si2438977edm.128.2021.01.14.04.45.45; Thu, 14 Jan 2021 04:46:09 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ON8B23mV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728967AbhANMmT (ORCPT + 99 others); Thu, 14 Jan 2021 07:42:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:59378 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728899AbhANMmR (ORCPT ); Thu, 14 Jan 2021 07:42:17 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 62ABD23A7A; Thu, 14 Jan 2021 12:40:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610628057; bh=urt0rFwgJZsr9A/Y8qW8N/YTnVS/uRrIXRNGH6kQGpw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ON8B23mV4B1iifAyQd7F63+r5IWRbFku/3UP17gtKe6ucp0vjiG6EFv1KlxvQsXAu Y658JtTwlqsC1zKgn7xqE40KKfdJqq/fkbkX0yTHqjx1kroq4hOtzjQPRhkoovT+LC pq/lOXshmv2lg3WvYj+xrRHYQuVXUIKwVktQNe42xHE48jPu9JgqZRU1SIgz6/b1Vp 21I9t9Nl3jLpbLJM93mVF2BUshi8NJP3lpQZbp3vMadIkpVtmcbyzb5IHn8ghj+mhY rc1d7vPcqgno1B0gZMXCN1QRXEYapmK4H4YsY+jai8Kmh5RBchwEbbyIzJSGz+oO8i FzHlgdoSm6fgw== Received: by pali.im (Postfix) id 408F8621; Thu, 14 Jan 2021 13:40:55 +0100 (CET) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Gregory Clement , Andrew Lunn , Michael Turquette , Stephen Boyd , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Cc: =?UTF-8?q?Marek=20Beh=C3=BAn?= , "Miquel Raynal" , "Tomasz Maciej Nowak" , "Luka Perkov" , "Andre Heider" , "Vladimir Vid" , "Russell King" , =?UTF-8?q?G=C3=A9rald=20Kerma?= , "Konstantin Porotchkin" Subject: [PATCH mvebu v2 09/10] cpufreq: armada-37xx: Remove cur_frequency variable Date: Thu, 14 Jan 2021 13:40:31 +0100 Message-Id: <20210114124032.12765-10-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210114124032.12765-1-pali@kernel.org> References: <20210114124032.12765-1-pali@kernel.org> 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 Variable cur_frequency in armada37xx_cpufreq_driver_init() is unused. Signed-off-by: Pali Rohár --- 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