From patchwork Thu May 17 18:00:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 10407489 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BF92460155 for ; Thu, 17 May 2018 18:02:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B123E2864A for ; Thu, 17 May 2018 18:02:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A531D28699; Thu, 17 May 2018 18:02:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 54CEF2864A for ; Thu, 17 May 2018 18:02:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752030AbeEQSCa (ORCPT ); Thu, 17 May 2018 14:02:30 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:36866 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752201AbeEQSBU (ORCPT ); Thu, 17 May 2018 14:01:20 -0400 Received: by mail-lf0-f66.google.com with SMTP id r2-v6so10095107lff.4; Thu, 17 May 2018 11:01:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=zTGANpTPHi7SVxpQIb2pP7b2AO1g5gwbi75gMUHtkDk=; b=oCx9vBlYzxJ3er0bkTxZZ2tP0zv53BkSw0ix+EAuQCK+t23Roli2uk7WGxhGqNR4Ra ovCs1g8AoVqR2cc+QfKt+iEFdLs7D7WKhl9UNQezl7dQT2CHMIza+b2L6eH6l2nenHk9 ynOaQubBV4b5JPeIBTk8ZIw1DrDa8roTb73JEnCRIf1qNOcoedJgsKUFkVBtHuF4hDbu H1Ui3tjJqqNCxEoR1v3PmhYe3RLRben/MNR/asyDjqefPtLE2+2EHbn+Czq9ZM4ZQwIu y9xjwJSV9K3TZUY+uBMeUCBjCv1oXBrAJdCcbzkdgLq0aJnS0PbnLB1pF+nKs/s1bhN4 doXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=zTGANpTPHi7SVxpQIb2pP7b2AO1g5gwbi75gMUHtkDk=; b=M4wg7arVJ5hZxYmESQWvgLCXtylp0caS5di272N/mDRPrUep0C03NpKlbmKmiVDHux iMo3AMDMk/EFLujcdUhX0LqmfXrlmBO2H1/19hnRkaTb+BxwfXCwdbCIHXQQoaEm4I+d 6Wz9Y7b3dv/3UY1cwQtiYbv5vIYH1df45kmw+ou3nDPPzSxvsOM4MPoSAgi7aEf55yiB GLh6x/fomJXI0d1jdl9FVhjWe4byxe98EmfobRxaL2LnlRRHr4gpEqHyC+bJ/YYmF1BA xIqkWZ/Wc9xbNClnwL4sLeFaXBFTrKjbT3PpfCKOFwM1bacTvcUb2r8t1Pesr39qARQJ nB6w== X-Gm-Message-State: ALKqPwfbcmqmTcQfh8K0+4bt2U73mvcv571IBNawqevRua3pdBN+DIIb 8CIjF1DNnzEEpvtuemUnpU4= X-Google-Smtp-Source: AB8JxZpJmNexhdEQvYTzhcRv3bBNEWlczrltVlUoocvlje4dDEJWq1quEQZoh/WhRN68wSMIg6NBMg== X-Received: by 2002:a2e:9ac3:: with SMTP id p3-v6mr3799544ljj.60.1526580078337; Thu, 17 May 2018 11:01:18 -0700 (PDT) Received: from localhost.localdomain ([109.252.91.232]) by smtp.gmail.com with ESMTPSA id g71-v6sm1362211lfh.85.2018.05.17.11.01.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 May 2018 11:01:17 -0700 (PDT) From: Dmitry Osipenko To: "Rafael J. Wysocki" , Viresh Kumar , Thierry Reding , Jonathan Hunter Cc: linux-tegra@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Geis Subject: [PATCH v1 06/11] cpufreq: tegra20: Remove unneeded check in tegra_cpu_init Date: Thu, 17 May 2018 21:00:51 +0300 Message-Id: <20180517180056.13336-7-digetx@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180517180056.13336-1-digetx@gmail.com> References: <20180517180056.13336-1-digetx@gmail.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove checking of the CPU number for consistency as it won't ever fail unless there is a severe bug in the cpufreq core. Signed-off-by: Dmitry Osipenko Acked-by: Viresh Kumar Acked-by: Thierry Reding --- drivers/cpufreq/tegra20-cpufreq.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/cpufreq/tegra20-cpufreq.c b/drivers/cpufreq/tegra20-cpufreq.c index 61f00d1cba26..147ae3e14f18 100644 --- a/drivers/cpufreq/tegra20-cpufreq.c +++ b/drivers/cpufreq/tegra20-cpufreq.c @@ -32,8 +32,6 @@ static struct cpufreq_frequency_table freq_table[] = { { .frequency = CPUFREQ_TABLE_END }, }; -#define NUM_CPUS 2 - static struct clk *cpu_clk; static struct clk *pll_x_clk; static struct clk *pll_p_clk; @@ -119,9 +117,6 @@ static int tegra_cpu_init(struct cpufreq_policy *policy) { int ret; - if (policy->cpu >= NUM_CPUS) - return -EINVAL; - clk_prepare_enable(cpu_clk); /* FIXME: what's the actual transition time? */