From patchwork Fri Apr 25 12:32:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Dubey X-Patchwork-Id: 4062101 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 D85AD9F271 for ; Fri, 25 Apr 2014 13:01:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3717420397 for ; Fri, 25 Apr 2014 13:01:29 +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 0B40F2035C for ; Fri, 25 Apr 2014 13:01:28 +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 1Wdfhx-0005fc-Ld; Fri, 25 Apr 2014 12:58:25 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wdf2P-0005Dk-0u for linux-arm-kernel@lists.infradead.org; Fri, 25 Apr 2014 12:15:29 +0000 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N4L0055X6143E70@mailout4.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 25 Apr 2014 21:15:04 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.51]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 8B.DA.18501.8C15A535; Fri, 25 Apr 2014 21:15:04 +0900 (KST) X-AuditID: cbfee68d-b7f4e6d000004845-e2-535a51c8ed01 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 0B.C7.25708.8C15A535; Fri, 25 Apr 2014 21:15:04 +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 <0N4L00MQN60WE500@mmp1.samsung.com>; Fri, 25 Apr 2014 21:15:04 +0900 (KST) From: Pankaj Dubey To: linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 05/10] ARM: EXYNOS: Remove regs-pmu.h header dependency from pm_domain Date: Fri, 25 Apr 2014 21:32:41 +0900 Message-id: <1398429166-5539-6-git-send-email-pankaj.dubey@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1398429166-5539-1-git-send-email-pankaj.dubey@samsung.com> References: <1396425058-4012-1-git-send-email-pankaj.dubey@samsung.com> <1398429166-5539-1-git-send-email-pankaj.dubey@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmphkeLIzCtJLcpLzFFi42I5/e+Zse6JwKhgg9YGZYuNM9azWiybdJfN onfBVTaLTY+vsVpc3jWHzWLG+X1MFrcv81ocftPOarF+xmsWi5vPtjNZ7GhZzeLA7dHS3MPm sXlJvUffllWMHp83yQWwRHHZpKTmZJalFunbJXBlvDyzmq3gNnfFt99nmBsYP3N2MXJySAiY SHxcsZgZwhaTuHBvPVsXIxeHkMAyRol1V8+wwhQdOdfMBGILCSxilFi2qByiqI1J4mX3HbAE m4CuxJP3c8EmiQhkS1xpvM8MUsQscIRR4vabY2BFwgLREqdX3WIEsVkEVCV2PNjIBmLzCrhL 7OhZBbSNA2ibgsScSTYgYU4BD4kTyz+yQyxrZZQ4//s2C4gjIbCNXWLOiStsEIMEJL5NPsQ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NTDyewoG/VXdNKOhobTXxNFZNNMgPfuMKY+mtK0G g8/Ta3I7nU4//uyVynBO+u/bZdyVGw3dMpcFTF9tLiWp8mj614bw+l95RivatWzdC173ibz6 /H0TQ+39eJOaZ9tiNaRdo798btvz5emG5h7mhT/UGCynr0y+//vFrmcKP7gXRX75UPxWtEuJ pTgj0VCLuag4EQCGHG189AIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140425_051529_249092_F5E6A10B X-CRM114-Status: GOOD ( 10.32 ) X-Spam-Score: -5.7 (-----) Cc: kgene.kim@samsung.com, linux@arm.linux.org.uk, b.zolnierkie@samsung.com, t.figa@samsung.com, yg1004.jang@samsung.com, s.nawrocki@samsung.com, vikas.sajjan@samsung.com, chow.kim@samsung.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 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,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 Reviewed-by: Tomasz Figa --- 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