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: 4060621 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 58C37BFF02 for ; Fri, 25 Apr 2014 12:18:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 958EB203AB for ; Fri, 25 Apr 2014 12:18:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AB26F2039D for ; Fri, 25 Apr 2014 12:18:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752845AbaDYMPv (ORCPT ); Fri, 25 Apr 2014 08:15:51 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:39628 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752788AbaDYMPF (ORCPT ); Fri, 25 Apr 2014 08:15:05 -0400 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>; 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 Cc: kgene.kim@samsung.com, linux@arm.linux.org.uk, t.figa@samsung.com, chow.kim@samsung.com, yg1004.jang@samsung.com, vikas.sajjan@samsung.com, s.nawrocki@samsung.com, b.zolnierkie@samsung.com 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//s2C4gjIbCNXWLOiStsEIMEJL5NPsQC 0S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ewoG/VXdNKOhobTXxNFZNNMgPfuMKY+mtK0G g8/Ta3I7nU4//uyVynBO+u/bZdyVGw3dMpcFTF9tLiWp8mj614bw+l95RivatWzdC173ibz6 /H0TQ+39eJOaZ9tiNaRdo798btvz5emG5h7mhT/UGCynr0y+//vFrmcKP7gXRX75UPxWtEuJ pTgj0VCLuag4EQCGHG189AIAAA== 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 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