From patchwork Mon Mar 31 15:16:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 27478 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f72.google.com (mail-oa0-f72.google.com [209.85.219.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5923720558 for ; Mon, 31 Mar 2014 15:18:57 +0000 (UTC) Received: by mail-oa0-f72.google.com with SMTP id eb12sf29732627oac.7 for ; Mon, 31 Mar 2014 08:18:56 -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=wCU1A/DXc1mguBPsq1hq+1h+AHFH93TL+XrjDCQlEQ4=; b=Z26RBdkMZHgw77zo7D21i+GmfZMSIoQi6yxiT7zHamXaS5gNecBNNTxIhrCZLwbPxq TMI8axOECTlu6X4ja1ipj/jEaBvQU3Z7BF6aCP5gySfKFFJDTngTiYF4FsIhh9V3O1qM lGLmiR8yzVNI8bPJZJl9sVDnGmBzm9ooKOjIt3KCfGBMIvFbe/60ROIR+Lb+ZMAe6ivN jCesQYJ8v8+owpKaRC5v7NnM2NlCMqP+m9oXBhOz+bcHJZQ91Po8XHPh1yweseGL25Ri rVEwRmMYmqPz748utbhlerrlaPqLIU7nuM2p7cdrdC6shS22nXy3vqvCT+s6YkGAsgyg HPcw== X-Gm-Message-State: ALoCoQlGqzFi7fSrrSqYAGKWNnzdl25zyxSRtMcVcPAc2gW3BVFay6h7h/cceOdjE9UeYqlkh4av X-Received: by 10.182.11.70 with SMTP id o6mr10310661obb.19.1396279136967; Mon, 31 Mar 2014 08:18:56 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.91.131 with SMTP id z3ls2463662qgd.59.gmail; Mon, 31 Mar 2014 08:18:56 -0700 (PDT) X-Received: by 10.220.11.208 with SMTP id u16mr3483607vcu.19.1396279136877; Mon, 31 Mar 2014 08:18:56 -0700 (PDT) Received: from mail-ve0-f171.google.com (mail-ve0-f171.google.com [209.85.128.171]) by mx.google.com with ESMTPS id tn6si2922469vcb.75.2014.03.31.08.18.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 31 Mar 2014 08:18:56 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.171; Received: by mail-ve0-f171.google.com with SMTP id jy13so5190612veb.16 for ; Mon, 31 Mar 2014 08:18:56 -0700 (PDT) X-Received: by 10.58.178.130 with SMTP id cy2mr40645vec.55.1396279136807; Mon, 31 Mar 2014 08:18:56 -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.220.12.8 with SMTP id v8csp150819vcv; Mon, 31 Mar 2014 08:18:56 -0700 (PDT) X-Received: by 10.68.194.202 with SMTP id hy10mr25894406pbc.94.1396279135902; Mon, 31 Mar 2014 08:18:55 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id uc9si9326144pac.458.2014.03.31.08.18.55; Mon, 31 Mar 2014 08:18:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753395AbaCaPSv (ORCPT + 5 others); Mon, 31 Mar 2014 11:18:51 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:39216 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753520AbaCaPSu (ORCPT ); Mon, 31 Mar 2014 11:18:50 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id s2VFIRjX005508; Mon, 31 Mar 2014 10:18:27 -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 s2VFIRcQ014593; Mon, 31 Mar 2014 10:18:27 -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; Mon, 31 Mar 2014 10:18:27 -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 s2VFGm4V013169; Mon, 31 Mar 2014 10:18:25 -0500 From: Tero Kristo To: , , CC: Subject: [PATCH 44/55] ARM: OMAP4: PRM: make omap4_prm_read/write_inst_reg calls static Date: Mon, 31 Mar 2014 18:16:23 +0300 Message-ID: <1396278994-12624-45-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1396278994-12624-1-git-send-email-t-kristo@ti.com> References: <1396278994-12624-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=neutral (google.com: 209.85.128.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) 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 not (and should not be) used by anybody outside the PRM driver itself. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/prm44xx.c | 6 +++--- arch/arm/mach-omap2/prm44xx_54xx.h | 4 ---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/arch/arm/mach-omap2/prm44xx.c b/arch/arm/mach-omap2/prm44xx.c index a80e8b5..f1f3e78 100644 --- a/arch/arm/mach-omap2/prm44xx.c +++ b/arch/arm/mach-omap2/prm44xx.c @@ -115,19 +115,19 @@ static struct prm_reset_src_map omap44xx_prm_reset_src_map[] = { /* PRM low-level functions */ /* Read a register in a CM/PRM instance in the PRM module */ -u32 omap4_prm_read_inst_reg(s16 inst, u16 reg) +static u32 omap4_prm_read_inst_reg(s16 inst, u16 reg) { return __raw_readl(prm_base + inst + reg); } /* Write into a register in a CM/PRM instance in the PRM module */ -void omap4_prm_write_inst_reg(u32 val, s16 inst, u16 reg) +static void omap4_prm_write_inst_reg(u32 val, s16 inst, u16 reg) { __raw_writel(val, prm_base + inst + reg); } /* Read-modify-write a register in a PRM module. Caller must lock */ -u32 omap4_prm_rmw_inst_reg_bits(u32 mask, u32 bits, s16 inst, s16 reg) +static u32 omap4_prm_rmw_inst_reg_bits(u32 mask, u32 bits, s16 inst, s16 reg) { u32 v; diff --git a/arch/arm/mach-omap2/prm44xx_54xx.h b/arch/arm/mach-omap2/prm44xx_54xx.h index 73734b2..4b36d3d 100644 --- a/arch/arm/mach-omap2/prm44xx_54xx.h +++ b/arch/arm/mach-omap2/prm44xx_54xx.h @@ -26,10 +26,6 @@ /* Function prototypes */ #ifndef __ASSEMBLER__ -extern u32 omap4_prm_read_inst_reg(s16 inst, u16 idx); -extern void omap4_prm_write_inst_reg(u32 val, s16 inst, u16 idx); -extern u32 omap4_prm_rmw_inst_reg_bits(u32 mask, u32 bits, s16 inst, s16 idx); - /* OMAP4/OMAP5-specific VP functions */ u32 omap4_prm_vp_check_txdone(u8 vp_id); void omap4_prm_vp_clear_txdone(u8 vp_id);