Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1822273pxb; Mon, 22 Feb 2021 11:48:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJymBGfaCD/pNjGe13zfi4NBCPZP6UrjxkQsZY0vy0W/M+T4G6xAaG73N3o4gRjdrppV9Ygn X-Received: by 2002:a17:906:8474:: with SMTP id hx20mr2342683ejc.129.1614023312853; Mon, 22 Feb 2021 11:48:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614023312; cv=none; d=google.com; s=arc-20160816; b=rDIMptI/aCdAWUz+oGMcKxR9r40A2jUgAXFVs/7FFKB4RZBRGGKTFc9GNQCl8OqQEp ha9aNnMrHoGO53KPvrRk7Do64iE+ZBrq6uI+8GlB6+FlVAadZemBqJ0MttqYrM6YifPx YEM/4Aj/xdmWewMWysH3PQ/385D+t79AjOn2MAj5JiOcyPpbir89WgTvAVSOGDdAfsS/ Gzx2YDPL9JzmU3EA1OuGdqKkGhFB0Ml4b8ZDFsdiILV1Wd++rJibbP6Qkr8Ms7yXiQzu R+JeUQgXWSUAnnFh7i5Smr+gphsjLi7eLncMkKJXhwhceyqB4MKII9uK8Tek3gn2DraN oDoA== 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=aTmRC4Sx3dz8TuDWQm3ZJHilzIpuTLHbtRz/q5vUiqs=; b=FvEai5wUKgxZ+5PgjgTYQKHywhrjsp3qB8gEiT4lqcxlV8yQZdoC7pR6JoeR5BS105 3ArK0kvnd8d5meTYRhXLnN5jsul2kcYQmZSdPtm0HOVcXcEhwM3Dx6sxSjbR/PUPOzpY txwPEcWHvqcqzFhKtuUkhNfKLvxeK8jT2afJ5QY8qmKf4qtMR448kBjrVWY1ZRQ8eLF8 AfIikqoypqMSGK3NulPtHqTk2Vt0YkBTVKqI86idrMeYuvQwuF+0RY6B/W4HcV9pdzt4 PFvnJAYRObhXv1jORfJrcGjzthwYnRoZawYtT/YJTl/CR/4IUFjZ8wrwy2uvKxWSn0/4 x4jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TQdxZNlt; 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 4si14082361edc.221.2021.02.22.11.48.09; Mon, 22 Feb 2021 11:48:32 -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=TQdxZNlt; 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 S232803AbhBVToH (ORCPT + 99 others); Mon, 22 Feb 2021 14:44:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:55066 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233274AbhBVTnk (ORCPT ); Mon, 22 Feb 2021 14:43:40 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id E68C264E77; Mon, 22 Feb 2021 19:42:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614022941; bh=01MxcmLrabdc8FEG08f/1GCdu8iEiJXD04j/6rQ8KDU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TQdxZNlt82acKOAaeQBsEmWJ6dSXW+HirLW7O8f9tUVmsc44fH7t5BUPc+FruQQuZ gRJa45nhjamp716vOgDWYW5yTuspoB8KK8rX170wF2ybqPCDmDouIk0rkjRoDws3ks KoGCi7sPcSCc4Txgm9H7bVtnb/TW36dqrGSfOuRHEyOQ1y3PSE3xL7rYm6RZRBZvxL LEB9vWzMuf4/+wRPDfOvYNewQ+Hv03PgbfBN/ph9rTRiuTqwHN21j5TSh5ETU51YU0 QsrlFEaoOzMHvnE4tYENn9JZn32bks1eRqHXigWpKEZdB1k5USiZzFKD2GgbA6yNOR Dr6pmJprbx8gA== Received: by pali.im (Postfix) id 7DB1E10D1; Mon, 22 Feb 2021 20:42:18 +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 v3 09/10] cpufreq: armada-37xx: Remove cur_frequency variable Date: Mon, 22 Feb 2021 20:41:57 +0100 Message-Id: <20210222194158.12342-10-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210222194158.12342-1-pali@kernel.org> References: <20210114124032.12765-1-pali@kernel.org> <20210222194158.12342-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 Tested-by: Tomasz Maciej Nowak Tested-by: Anders Trier Olesen Tested-by: Philip Soares --- 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 e4782f562e7a..050abff18308 100644 --- a/drivers/cpufreq/armada-37xx-cpufreq.c +++ b/drivers/cpufreq/armada-37xx-cpufreq.c @@ -400,7 +400,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; @@ -461,14 +461,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