From patchwork Fri May 18 20:06:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 10412061 X-Patchwork-Delegate: rjw@sisk.pl 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 19D376031B for ; Fri, 18 May 2018 20:10:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 07E4728AC5 for ; Fri, 18 May 2018 20:10:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EEFB428ACB; Fri, 18 May 2018 20:10:01 +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 85F6628ACA for ; Fri, 18 May 2018 20:10:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752249AbeERUJt (ORCPT ); Fri, 18 May 2018 16:09:49 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:38454 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752346AbeERUHZ (ORCPT ); Fri, 18 May 2018 16:07:25 -0400 Received: by mail-lf0-f65.google.com with SMTP id z142-v6so15659351lff.5; Fri, 18 May 2018 13:07:23 -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=OOM0Ei/FWLfd36PPZ4/OEyTOfvRpATxIfGo99BTtxpM=; b=Cb1FWEOh+PoE6cEIcIlWS7PoMphhLRg07bGFpxf8lLOrMtfyyWWqLu6t239JGHeTuQ qpNz1HVF70GfSv4dgPsL2MHEq2cIrNp3WHFtNcL14VjyFrWqm/LcA9wlHmiUYoyf7Lhl ACrmp216OfEjBSskiVS+jiEQsVuNInC9yJyPP57JdPLsHiUz1701lG8uqDq4AaXqBu4H 5KgORwU5yRL0IGmY4Bt7sF6xaDZY4NLbqev9SLmR8lBXRUdUqDp6oMywStdlQQFiZtrr qEjSwDXMCZ84kKUdEqM6EKIU1+9f1BOj8WJXfQeYeMcuLKp+QaphNYBy1fezQnwseaz2 O5Ow== 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=OOM0Ei/FWLfd36PPZ4/OEyTOfvRpATxIfGo99BTtxpM=; b=sqxOgdLKa7MMfeYWT4uYRzkTyKkBcGbdTyCvyDYGZs3KeCwUPZ5sVPyJ6uCJwhV76l fat0licFd0ey959Q8VlrkT12fhCGFUKgUNAruc4nsGiclh+zQmKF3oqzQ4yskN8pZen8 T1zdKrN58AAhXjdptkVRcKarV4Uq48OUOt7mA3a2ZzZmiAWey8XhmCrQNmJRvOdgrqBg Aa2jdpmf43TV2rFXhzBRzk7TlHl6CObo4QWsZ9OZNcH4EoONpDjLAq2/6WfORQ2b4svp uR9IME99b4UMqxEVcbb4Off/0lwwCAUmkzzDJ6BnRnFrAMYK4lccEnJXfihj5lxo0Ewa VnHw== X-Gm-Message-State: ALKqPwfiTAYia5XEYlb6XqwhA9djArgNveNPggcgPU8dBi3JrorqACA7 FgZclQMJ1bxuXsINbvtWxFQ= X-Google-Smtp-Source: AB8JxZpSFef6NxkY3xF2fwip3lUgHFTr2ebwCOFkhrwmMxd0GclLc2HfhKEX3rRVqZI+N+YeFeh6Kg== X-Received: by 2002:a19:becb:: with SMTP id o194-v6mr22569003lff.13.1526674043117; Fri, 18 May 2018 13:07:23 -0700 (PDT) Received: from localhost.localdomain ([109.252.91.60]) by smtp.gmail.com with ESMTPSA id z132-v6sm2026987lfd.45.2018.05.18.13.07.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 May 2018 13:07:22 -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 v2 06/11] cpufreq: tegra20: Remove unneeded check in tegra_cpu_init Date: Fri, 18 May 2018 23:06:37 +0300 Message-Id: <20180518200642.24815-7-digetx@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180518200642.24815-1-digetx@gmail.com> References: <20180518200642.24815-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 ea186d3f0faf..df25e350c8e6 100644 --- a/drivers/cpufreq/tegra20-cpufreq.c +++ b/drivers/cpufreq/tegra20-cpufreq.c @@ -35,8 +35,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; @@ -122,9 +120,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? */