From patchwork Wed Jul 2 08:47:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 32947 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f199.google.com (mail-pd0-f199.google.com [209.85.192.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4CBD420560 for ; Wed, 2 Jul 2014 08:48:05 +0000 (UTC) Received: by mail-pd0-f199.google.com with SMTP id r10sf50789870pdi.6 for ; Wed, 02 Jul 2014 01:48:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=Ihujsuvx9NcZummqCI01dI8G1qlymwHUkewLV8h5VaE=; b=RvBJT+JDbmMzo+fdjvaKpq+FqNFEXsepCF4rc6rvgG7TnpGOM7W6Ul2AFGpkFSGrnR 7dyfWzD/lRPNfw/28bEqrbkpYQcGqxX8HAxuhC7GyA4E+kwwLdnie0hPUOjeS1/3lw28 e4l+tmpvjBTfDZipzwlQsIn9SqCdOp7WDhp+NlGuH5+d7Dh8Rfn9WCeZ8yPaI9jVEb8O ymfOLENcs3p1UAmuJejF3Fpc1IRxrzoPFXRX89wz1UgVezJN56MKWTVgjZ3eqrsT6f98 tvtl45MPgRBKqRiZc9f5W0zoRM9NP7Pn6IB0ovMSBcahFaEkBG8WLd0TkpNyJIdlIckE rHnw== X-Gm-Message-State: ALoCoQnpKANUBTNnXr5H5YTG5q3C01TU6RgMqtkvHvo/+toyJuZJxx61FWw9+n56S7M87/a/uGaK X-Received: by 10.66.228.162 with SMTP id sj2mr2624174pac.11.1404290884619; Wed, 02 Jul 2014 01:48:04 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.106.99 with SMTP id d90ls2380359qgf.57.gmail; Wed, 02 Jul 2014 01:48:04 -0700 (PDT) X-Received: by 10.52.69.172 with SMTP id f12mr40868982vdu.26.1404290884483; Wed, 02 Jul 2014 01:48:04 -0700 (PDT) Received: from mail-ve0-f169.google.com (mail-ve0-f169.google.com [209.85.128.169]) by mx.google.com with ESMTPS id wy4si12603808vdc.8.2014.07.02.01.48.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 02 Jul 2014 01:48:04 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.169 as permitted sender) client-ip=209.85.128.169; Received: by mail-ve0-f169.google.com with SMTP id pa12so11058539veb.0 for ; Wed, 02 Jul 2014 01:48:04 -0700 (PDT) X-Received: by 10.52.24.68 with SMTP id s4mr762571vdf.37.1404290884407; Wed, 02 Jul 2014 01:48:04 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp277214vcb; Wed, 2 Jul 2014 01:48:04 -0700 (PDT) X-Received: by 10.66.232.68 with SMTP id tm4mr2406530pac.114.1404290883709; Wed, 02 Jul 2014 01:48:03 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cl5si29620598pad.108.2014.07.02.01.48.02; Wed, 02 Jul 2014 01:48:02 -0700 (PDT) Received-SPF: none (google.com: linux-omap-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752002AbaGBIsA (ORCPT + 6 others); Wed, 2 Jul 2014 04:48:00 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:38798 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751970AbaGBIr4 (ORCPT ); Wed, 2 Jul 2014 04:47:56 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id s628lX7D013408; Wed, 2 Jul 2014 03:47:33 -0500 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s628lXYC004405; Wed, 2 Jul 2014 03:47:33 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.174.1; Wed, 2 Jul 2014 03:47:32 -0500 Received: from localhost.localdomain (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s628lOXZ007645; Wed, 2 Jul 2014 03:47:31 -0500 From: Tero Kristo To: , , , CC: Subject: [PATCH 03/13] ARM: OMAP4+: dpll: remove cpu_is_omap44xx checks Date: Wed, 2 Jul 2014 11:47:37 +0300 Message-ID: <1404290867-6768-4-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1404290867-6768-1-git-send-email-t-kristo@ti.com> References: <1404290867-6768-1-git-send-email-t-kristo@ti.com> MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: t-kristo@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.169 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , These are unnecessary, as the clock code is only used on OMAP4+ platforms through clock registrations. This also allows to eventually migrate the clock type implementation under clock driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/dpll44xx.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-omap2/dpll44xx.c b/arch/arm/mach-omap2/dpll44xx.c index 52f9438..b071891 100644 --- a/arch/arm/mach-omap2/dpll44xx.c +++ b/arch/arm/mach-omap2/dpll44xx.c @@ -15,7 +15,6 @@ #include #include -#include "soc.h" #include "clock.h" #include "clock44xx.h" #include "cm-regbits-44xx.h" @@ -35,7 +34,7 @@ int omap4_dpllmx_gatectrl_read(struct clk_hw_omap *clk) u32 v; u32 mask; - if (!clk || !clk->clksel_reg || !cpu_is_omap44xx()) + if (!clk || !clk->clksel_reg) return -EINVAL; mask = clk->flags & CLOCK_CLKOUTX2 ? @@ -54,7 +53,7 @@ void omap4_dpllmx_allow_gatectrl(struct clk_hw_omap *clk) u32 v; u32 mask; - if (!clk || !clk->clksel_reg || !cpu_is_omap44xx()) + if (!clk || !clk->clksel_reg) return; mask = clk->flags & CLOCK_CLKOUTX2 ? @@ -72,7 +71,7 @@ void omap4_dpllmx_deny_gatectrl(struct clk_hw_omap *clk) u32 v; u32 mask; - if (!clk || !clk->clksel_reg || !cpu_is_omap44xx()) + if (!clk || !clk->clksel_reg) return; mask = clk->flags & CLOCK_CLKOUTX2 ?