From patchwork Mon Aug 18 15:30:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 4737661 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 979F79F344 for ; Mon, 18 Aug 2014 15:38:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CD41220114 for ; Mon, 18 Aug 2014 15:38:08 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0666F20120 for ; Mon, 18 Aug 2014 15:38:08 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XJOui-0004KU-AO; Mon, 18 Aug 2014 15:32:04 +0000 Received: from mail-lb0-f169.google.com ([209.85.217.169]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XJOuE-000457-Rs for linux-arm-kernel@lists.infradead.org; Mon, 18 Aug 2014 15:31:38 +0000 Received: by mail-lb0-f169.google.com with SMTP id s7so4320862lbd.14 for ; Mon, 18 Aug 2014 08:31:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=+NZxBd1W7AYtlgt7CIlI9+KSAS5TcT3L0ZdKjA38ilU=; b=re86jO66m26cDDPHX+WJ+aDAkRJZ8z2qnJ+78LPm/7jZII3cggX6+a/b+itMkprKJh apwr8jEMTJmDep52T5iStLTNhpNXARMPXqU7ytdEzFByXJdrhHzlsxmC/FiKW9F2mHTb VgkE9gGWNTWeP0tAgePyrt2fKkEBBgQPRbqX3DOs4ympqHmuq9wcNSZg5DGIElvvh50D EpUHxQK84gKvI+pdZ831y1xTZHtnoaWqR3PH3j0aLEI4NcbKyUzwADoVB1/LyngSMAQS Vin2JxzxLI8HtFIh1ZCOJ3l61IBl74zHvEEybP0mvTcrvUWaiNZcraXUm3Ai1g+Vg0Qz D0MQ== X-Received: by 10.152.21.98 with SMTP id u2mr11655667lae.80.1408375868843; Mon, 18 Aug 2014 08:31:08 -0700 (PDT) Received: from cizrna.lan (37-48-35-72.tmcz.cz. [37.48.35.72]) by mx.google.com with ESMTPSA id q7sm1793990lag.16.2014.08.18.08.31.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Aug 2014 08:31:08 -0700 (PDT) From: Tomeu Vizoso To: Mike Turquette Subject: [PATCH v7 3/8] cpufreq: kirkwood: Remove use of the clk provider API Date: Mon, 18 Aug 2014 17:30:29 +0200 Message-Id: <1408375833-10703-4-git-send-email-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1408375833-10703-1-git-send-email-tomeu.vizoso@collabora.com> References: <1408375833-10703-1-git-send-email-tomeu.vizoso@collabora.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140818_083135_117775_8B603B27 X-CRM114-Status: GOOD ( 11.49 ) X-Spam-Score: -0.7 (/) Cc: Tomeu Vizoso , Stephen Warren , Tomasz Figa , linux-kernel@vger.kernel.org, Javier Martinez Canillas , rabin@rab.in, Thierry Reding , Peter De Schrijver , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Tomeu Vizoso Reviewed-By: Tomeu Vizoso --- drivers/cpufreq/kirkwood-cpufreq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/cpufreq/kirkwood-cpufreq.c b/drivers/cpufreq/kirkwood-cpufreq.c index 37a4806..f3d087f 100644 --- a/drivers/cpufreq/kirkwood-cpufreq.c +++ b/drivers/cpufreq/kirkwood-cpufreq.c @@ -12,7 +12,6 @@ #include #include #include -#include #include #include #include @@ -50,7 +49,7 @@ static struct cpufreq_frequency_table kirkwood_freq_table[] = { static unsigned int kirkwood_cpufreq_get_cpu_frequency(unsigned int cpu) { - if (__clk_is_enabled(priv.powersave_clk)) + if (clk_is_enabled(priv.powersave_clk)) return kirkwood_freq_table[1].frequency; return kirkwood_freq_table[0].frequency; }