From patchwork Mon Sep 1 18:08:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 36406 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oi0-f71.google.com (mail-oi0-f71.google.com [209.85.218.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 95BF52032B for ; Mon, 1 Sep 2014 18:10:17 +0000 (UTC) Received: by mail-oi0-f71.google.com with SMTP id v63sf30748405oia.6 for ; Mon, 01 Sep 2014 11:10:17 -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=wrt9DXdIk8Dq6vbh2DaxQwdvqOFUmI96w0RAQ3IfdDM=; b=PZJYMOA7++rEnJ/Y5CFWfFvLYzPdwBI6WdNODOxmjg2kKGJUHqCCqNDUAdMz6cD6WO 2YvSk4cJVKFXCoZEQbMj67gHygMJf1R7GnAv5rbpsG+iuJPFhi6UUEpx4rEwNcAKjtWB ngU82ru1thDhalS5n+gHg7Bo0TKwkN1GASFzaHLkpjTFt0sj/EiBEINaRZwerUdR504I nMHMIMFw+uBq6lAvWpxXf7V+IrnttTuGuvD+5xe8WX4ssmHaFyFuMSNxNpIjN1kAgj3g QQw+jr+ixKaInv9XzRHhLRZHdD5x5XAXLqSeqC3Y/TZCOwwGw26PV35DHQTiUN8XYn64 d8Fw== X-Gm-Message-State: ALoCoQm68QKfm8ULgPEjobpo8W3pCl+AG8hAs8/R522Y0l7BXTjM05C0PSvSP2Nx/RoD9m9DM7XQ X-Received: by 10.50.117.10 with SMTP id ka10mr12751274igb.1.1409595017161; Mon, 01 Sep 2014 11:10:17 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.16.232 with SMTP id 95ls2100027qgb.94.gmail; Mon, 01 Sep 2014 11:10:17 -0700 (PDT) X-Received: by 10.52.5.201 with SMTP id u9mr742441vdu.85.1409595017058; Mon, 01 Sep 2014 11:10:17 -0700 (PDT) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by mx.google.com with ESMTPS id q3si1110916vct.6.2014.09.01.11.10.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 01 Sep 2014 11:10:17 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.181 as permitted sender) client-ip=209.85.220.181; Received: by mail-vc0-f181.google.com with SMTP id ij19so5822361vcb.40 for ; Mon, 01 Sep 2014 11:10:17 -0700 (PDT) X-Received: by 10.221.61.5 with SMTP id wu5mr26387811vcb.13.1409595016983; Mon, 01 Sep 2014 11:10:16 -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.45.67 with SMTP id uj3csp421353vcb; Mon, 1 Sep 2014 11:10:16 -0700 (PDT) X-Received: by 10.66.142.166 with SMTP id rx6mr5352773pab.128.1409595016012; Mon, 01 Sep 2014 11:10:16 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tf5si2430384pab.88.2014.09.01.11.10.15 for ; Mon, 01 Sep 2014 11:10:16 -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 S1754682AbaIASKL (ORCPT + 5 others); Mon, 1 Sep 2014 14:10:11 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:37237 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754624AbaIASKC (ORCPT ); Mon, 1 Sep 2014 14:10:02 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s81I9eYD020906; Mon, 1 Sep 2014 13:09:40 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s81I9eh9008062; Mon, 1 Sep 2014 13:09:40 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.174.1; Mon, 1 Sep 2014 13:09:39 -0500 Received: from sokoban.home (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s81I9Jl9012145; Mon, 1 Sep 2014 13:09:38 -0500 From: Tero Kristo To: , , CC: Subject: [PATCH 10/26] ARM: OMAP2/3: CM: make cm_split_idlest_reg SoC calls static Date: Mon, 1 Sep 2014 21:08:59 +0300 Message-ID: <1409594955-1476-11-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1409594955-1476-1-git-send-email-t-kristo@ti.com> References: <1409594955-1476-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.220.181 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: , CM driver has a generic API which calls the SoC specific split function through cm_ll_data, so there is no need for the SoC specific functions to be publicly available. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cm2xxx.c | 5 +++-- arch/arm/mach-omap2/cm2xxx.h | 2 -- arch/arm/mach-omap2/cm3xxx.c | 5 +++-- arch/arm/mach-omap2/cm3xxx.h | 3 --- 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/arch/arm/mach-omap2/cm2xxx.c b/arch/arm/mach-omap2/cm2xxx.c index 365df9e..a96d901 100644 --- a/arch/arm/mach-omap2/cm2xxx.c +++ b/arch/arm/mach-omap2/cm2xxx.c @@ -204,8 +204,9 @@ void omap2xxx_cm_apll96_disable(void) * XXX This function is only needed until absolute register addresses are * removed from the OMAP struct clk records. */ -int omap2xxx_cm_split_idlest_reg(void __iomem *idlest_reg, s16 *prcm_inst, - u8 *idlest_reg_id) +static int omap2xxx_cm_split_idlest_reg(void __iomem *idlest_reg, + s16 *prcm_inst, + u8 *idlest_reg_id) { unsigned long offs; u8 idlest_offs; diff --git a/arch/arm/mach-omap2/cm2xxx.h b/arch/arm/mach-omap2/cm2xxx.h index a14094b..c89502b 100644 --- a/arch/arm/mach-omap2/cm2xxx.h +++ b/arch/arm/mach-omap2/cm2xxx.h @@ -56,8 +56,6 @@ extern void omap2xxx_cm_set_apll96_auto_low_power_stop(void); int omap2xxx_cm_wait_module_ready(u8 part, s16 prcm_mod, u16 idlest_id, u8 idlest_shift); -extern int omap2xxx_cm_split_idlest_reg(void __iomem *idlest_reg, - s16 *prcm_inst, u8 *idlest_reg_id); extern int omap2xxx_cm_fclks_active(void); extern int omap2xxx_cm_mpu_retention_allowed(void); extern u32 omap2xxx_cm_get_core_clk_src(void); diff --git a/arch/arm/mach-omap2/cm3xxx.c b/arch/arm/mach-omap2/cm3xxx.c index a29c2bf..c6622b7 100644 --- a/arch/arm/mach-omap2/cm3xxx.c +++ b/arch/arm/mach-omap2/cm3xxx.c @@ -118,8 +118,9 @@ static int omap3xxx_cm_wait_module_ready(u8 part, s16 prcm_mod, u16 idlest_id, * XXX This function is only needed until absolute register addresses are * removed from the OMAP struct clk records. */ -int omap3xxx_cm_split_idlest_reg(void __iomem *idlest_reg, s16 *prcm_inst, - u8 *idlest_reg_id) +static int omap3xxx_cm_split_idlest_reg(void __iomem *idlest_reg, + s16 *prcm_inst, + u8 *idlest_reg_id) { unsigned long offs; u8 idlest_offs; diff --git a/arch/arm/mach-omap2/cm3xxx.h b/arch/arm/mach-omap2/cm3xxx.h index 33491c7..734a858 100644 --- a/arch/arm/mach-omap2/cm3xxx.h +++ b/arch/arm/mach-omap2/cm3xxx.h @@ -68,9 +68,6 @@ #ifndef __ASSEMBLER__ -extern int omap3xxx_cm_split_idlest_reg(void __iomem *idlest_reg, - s16 *prcm_inst, u8 *idlest_reg_id); - extern void omap3_cm_save_context(void); extern void omap3_cm_restore_context(void); extern void omap3_cm_save_scratchpad_contents(u32 *ptr);