From patchwork Wed Apr 2 07:50:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Dubey X-Patchwork-Id: 3926951 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 68198BF540 for ; Wed, 2 Apr 2014 07:38:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CC2282022A for ; Wed, 2 Apr 2014 07:38:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DE2CD20220 for ; Wed, 2 Apr 2014 07:38:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758016AbaDBHhp (ORCPT ); Wed, 2 Apr 2014 03:37:45 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:14709 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758000AbaDBHeC (ORCPT ); Wed, 2 Apr 2014 03:34:02 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N3E00KRB7OPUH80@mailout2.samsung.com>; Wed, 02 Apr 2014 16:34:01 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.50]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id FD.99.10364.96DBB335; Wed, 02 Apr 2014 16:34:01 +0900 (KST) X-AuditID: cbfee690-b7f266d00000287c-07-533bbd691fcc Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 4B.5B.29263.96DBB335; Wed, 02 Apr 2014 16:34:01 +0900 (KST) Received: from localhost.localdomain ([12.36.165.191]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N3E00KU17OBEN00@mmp1.samsung.com>; Wed, 02 Apr 2014 16:34:01 +0900 (KST) From: Pankaj Dubey To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: kgene.kim@samsung.com, linux@arm.linux.org.uk, chow.kim@samsung.com, Young-Gun Jang Subject: [PATCH 04/10] ARM: EXYNOS: Remove regs-pmu.h file dependency from pm_domain Date: Wed, 02 Apr 2014 16:50:55 +0900 Message-id: <1396425058-4012-5-git-send-email-pankaj.dubey@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1396425058-4012-1-git-send-email-pankaj.dubey@samsung.com> References: <1396425058-4012-1-git-send-email-pankaj.dubey@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrPLMWRmVeSWpSXmKPExsVy+t8zI93MvdbBBis+a1osm3SXzaJ3wVU2 i02Pr7FaXN41h81ixvl9TBa3L/Na7GhZzeLA7tHS3MPmsXlJvUffllWMHp83yQWwRHHZpKTm ZJalFunbJXBlvDyzmq3gNnfFt99nmBsYP3N2MXJySAiYSLya8YMFwhaTuHBvPVsXIxeHkMAy Ronne1azwxQdefObHSKxiFFiSstnKKeNSeLr04usIFVsAroST97PZQaxRQSyJS7NugU2llmg WOLb6z6wGmGBMIlLu+YwgtgsAqoS62Y+BdvAK+Au8W3bVqB6DqBtChJzJtmAhDkFPCTut7SA lQgBlcy9sZMVZK+EwGR2ib0z+pkh5ghIfJt8CKpXVmLTAWaIoyUlDq64wTKBUXgBI8MqRtHU guSC4qT0IhO94sTc4tK8dL3k/NxNjJDAnrCD8d4B60OMyUDjJjJLiSbnAyMjryTe0NjMyMLU xNTYyNzSjDRhJXFetUdJQUIC6YklqdmpqQWpRf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W1W2XKkP+KSkxFKckWioxVxUnAgA0o3nPN8CAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, 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 From: Young-Gun Jang Current "pm_domain.c" file uses "S5P_INT_LOCAL_PWR_EN" definition from "regs-pmu.h" and hence needs to include this header file. As there is no other user of "S5P_INT_LOCAL_PWR_EN" definition other than pm_domain, to remove "regs-pmu.h" header file dependency from "pm_domain.c" it's better we define this definition in "pm_domain.c" file itself and thus it will help in removing header file inclusion from "pm_domain.c". Signed-off-by: Young-Gun Jang --- arch/arm/mach-exynos/pm_domains.c | 2 +- arch/arm/mach-exynos/regs-pmu.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/mach-exynos/pm_domains.c b/arch/arm/mach-exynos/pm_domains.c index fe6570e..f676b0a 100644 --- a/arch/arm/mach-exynos/pm_domains.c +++ b/arch/arm/mach-exynos/pm_domains.c @@ -22,7 +22,7 @@ #include #include -#include "regs-pmu.h" +#define S5P_INT_LOCAL_PWR_EN 0x7 /* * Exynos specific wrapper around the generic power domain diff --git a/arch/arm/mach-exynos/regs-pmu.h b/arch/arm/mach-exynos/regs-pmu.h index 4ee706d..bfebe84 100644 --- a/arch/arm/mach-exynos/regs-pmu.h +++ b/arch/arm/mach-exynos/regs-pmu.h @@ -116,7 +116,6 @@ #define S5P_PAD_RET_EBIB_OPTION S5P_PMUREG(0x31A8) #define S5P_CORE_LOCAL_PWR_EN 0x3 -#define S5P_INT_LOCAL_PWR_EN 0x7 #define S5P_CHECK_SLEEP 0x00000BAD