From patchwork Fri Jun 14 19:32:54 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Figa X-Patchwork-Id: 2724101 Return-Path: X-Original-To: patchwork-linux-arm@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 84948C0AB1 for ; Fri, 14 Jun 2013 19:57:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A5D6720372 for ; Fri, 14 Jun 2013 19:57:40 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 31ED020244 for ; Fri, 14 Jun 2013 19:57:39 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UnZpV-0001WS-Ss; Fri, 14 Jun 2013 19:38:41 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UnZnk-0007by-4F; Fri, 14 Jun 2013 19:36:48 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UnZlf-0007JW-EZ for linux-arm-kernel@lists.infradead.org; Fri, 14 Jun 2013 19:34:41 +0000 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MOE00FZSE9PI770@mailout1.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 14 Jun 2013 20:33:26 +0100 (BST) X-AuditID: cbfec7f4-b7fd76d0000035e1-c1-51bb70060a7b Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 85.59.13793.6007BB15; Fri, 14 Jun 2013 20:33:26 +0100 (BST) Received: from amdc1227.digital.local ([106.116.147.199]) by eusync2.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0MOE00FXFEBEW970@eusync2.samsung.com>; Fri, 14 Jun 2013 20:33:26 +0100 (BST) From: Tomasz Figa To: linux-samsung-soc@vger.kernel.org Subject: [PATCH 18/28] ARM: SAMSUNG: pm: Include most of mach/ headers conditionally Date: Fri, 14 Jun 2013 21:32:54 +0200 Message-id: <1371238384-1504-19-git-send-email-t.figa@samsung.com> X-Mailer: git-send-email 1.8.2.1 In-reply-to: <1371238384-1504-1-git-send-email-t.figa@samsung.com> References: <1371238384-1504-1-git-send-email-t.figa@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupiluLIzCtJLcpLzFFi42I5/e/4FV22gt2BBp2zhSz+TjrGbtG74Cqb xdmmN+wWmx5fY7WYcX4fk8XaI3fZLU5d/8xmcfhNO6vF+hmvWSyOzVjC6MDl8fvXJEaPO9f2 sHlsXlLvceVEE6tH35ZVjB6fN8kFsEVx2aSk5mSWpRbp2yVwZRy/soO1YBpHReum6WwNjF/Z uhg5OSQETCRmL7zJCmGLSVy4tx4ozsUhJLCUUWLilIuMEE4fk8TWPVfYQarYBNQkPjc8AusW EVCV+Ny2gB2kiFngJZPE3cYHYEXCAmES86adBbNZgIoW7etgBLF5BZwkfu3byA6xTkHi+PZt YHFOoPjZ9VvAhgoJOEpMb1zCMoGRdwEjwypG0dTS5ILipPRcQ73ixNzi0rx0veT83E2MkPD7 soNx8TGrQ4wCHIxKPLwT1XYHCrEmlhVX5h5ilOBgVhLhvasKFOJNSaysSi3Kjy8qzUktPsTI xMEp1cAopX3pQwTXmzuaW24+vdGVd1vf7Ozbz5dPRpfeyd+hHZe3b+b5oI45zEuURLLuW4b2 H5Q8yPl+8cIV2UyPP35/aK3MWZl+MP05v+jsomkXtm+8dn+KjuPEZGGu9uonyZEZS9nPRosw /2CKuyhn5rXnvrHl2kmhK82lI91Cf3Mmzkzuab3/NGyqEktxRqKhFnNRcSIAG4JKjR0CAAA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130614_153439_641554_3E423707 X-CRM114-Status: UNSURE ( 8.11 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -7.2 (-------) Cc: Kukjin Kim , Arnd Bergmann , Tomasz Figa , Kyungmin Park , Thomas Abraham , Sylwester Nawrocki , Olof Johansson , linux-arm-kernel@lists.infradead.org, Marek Szyprowski 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=-4.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 Since it is illegal to include mach/ headers from source files outside of respective mach-* directory and DT-only Samsung platforms might not have all of them anyway, this patches makes inclusion of them conditional, based on CONFIG_SAMSUNG_ATAGS. Signed-off-by: Tomasz Figa Signed-off-by: Kyungmin Park --- arch/arm/plat-samsung/pm.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm/plat-samsung/pm.c b/arch/arm/plat-samsung/pm.c index 53210ec..d76ab72 100644 --- a/arch/arm/plat-samsung/pm.c +++ b/arch/arm/plat-samsung/pm.c @@ -21,13 +21,17 @@ #include #include -#include -#include #include + +#ifdef CONFIG_SAMSUNG_ATAGS +#include +#include #include #include #include +#endif + #include #include