From patchwork Mon Oct 17 06:15:09 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 4699 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id C8F3223E51 for ; Mon, 17 Oct 2011 06:12:35 +0000 (UTC) Received: from mail-ey0-f180.google.com (mail-ey0-f180.google.com [209.85.215.180]) by fiordland.canonical.com (Postfix) with ESMTP id BFBACA1845A for ; Mon, 17 Oct 2011 06:12:35 +0000 (UTC) Received: by eyg5 with SMTP id 5so3327397eyg.11 for ; Sun, 16 Oct 2011 23:12:35 -0700 (PDT) Received: by 10.223.77.69 with SMTP id f5mr22467967fak.3.1318831955493; Sun, 16 Oct 2011 23:12:35 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.24.41 with SMTP id r9cs89300laf; Sun, 16 Oct 2011 23:12:35 -0700 (PDT) Received: by 10.68.55.69 with SMTP id q5mr36391693pbp.81.1318831954137; Sun, 16 Oct 2011 23:12:34 -0700 (PDT) Received: from mail-pz0-f42.google.com (mail-pz0-f42.google.com [209.85.210.42]) by mx.google.com with ESMTPS id y9si14478755pbi.19.2011.10.16.23.12.33 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 16 Oct 2011 23:12:34 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.210.42 is neither permitted nor denied by best guess record for domain of shawn.guo@linaro.org) client-ip=209.85.210.42; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.42 is neither permitted nor denied by best guess record for domain of shawn.guo@linaro.org) smtp.mail=shawn.guo@linaro.org Received: by mail-pz0-f42.google.com with SMTP id 36so4653580pzk.1 for ; Sun, 16 Oct 2011 23:12:33 -0700 (PDT) Received: by 10.68.14.97 with SMTP id o1mr36709355pbc.0.1318831953161; Sun, 16 Oct 2011 23:12:33 -0700 (PDT) Received: from localhost.localdomain ([117.82.23.149]) by mx.google.com with ESMTPS id ko15sm21528378pbb.9.2011.10.16.23.12.01 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 16 Oct 2011 23:12:32 -0700 (PDT) From: Shawn Guo To: Arnd Bergmann , Chris Ball Cc: linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org, Sascha Hauer , patches@linaro.org, Shawn Guo Subject: [PATCH 4/5] arm/imx: explicitly includes mach/hardware.h in pm-imx27.c Date: Mon, 17 Oct 2011 14:15:09 +0800 Message-Id: <1318832110-29289-5-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1318832110-29289-1-git-send-email-shawn.guo@linaro.org> References: <1318832110-29289-1-git-send-email-shawn.guo@linaro.org> MIME-Version: 1.0 The pm-imx27.c references a number of things requiring the explicit inclusion of mach/hardware.h. Otherwise, when indirect inclusion to mach/hardware.h gets cleaned up, we will see the following compile error. CC arch/arm/mach-imx/pm-imx27.o arch/arm/mach-imx/pm-imx27.c: In function ‘mx27_suspend_enter’: arch/arm/mach-imx/pm-imx27.c:22:3: error: implicit declaration of function ‘IOMEM’ arch/arm/mach-imx/pm-imx27.c:22:3: error: implicit declaration of function ‘IMX_IO_P2V’ arch/arm/mach-imx/pm-imx27.c: In function ‘mx27_pm_init’: arch/arm/mach-imx/pm-imx27.c:42:2: error: implicit declaration of function ‘cpu_is_mx27’ Signed-off-by: Shawn Guo --- arch/arm/mach-imx/pm-imx27.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-imx/pm-imx27.c b/arch/arm/mach-imx/pm-imx27.c index acf1769..e455d2f 100644 --- a/arch/arm/mach-imx/pm-imx27.c +++ b/arch/arm/mach-imx/pm-imx27.c @@ -11,7 +11,7 @@ #include #include #include -#include +#include static int mx27_suspend_enter(suspend_state_t state) {