From patchwork Wed Jan 15 09:01:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 23225 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f72.google.com (mail-qe0-f72.google.com [209.85.128.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D9086206A0 for ; Wed, 15 Jan 2014 09:05:50 +0000 (UTC) Received: by mail-qe0-f72.google.com with SMTP id 5sf1263655qeb.3 for ; Wed, 15 Jan 2014 01:05:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=41gVEPCtUDQO8CloExB0tUyLoYVrqiu3yWnfzdsPgbE=; b=cGnXtBMCTfkgcOe9gdwXFlldP8bBqHyHHzB/RmftRqJ3ngVO3pwvOpp8KAQz/dMZ2j BKBcycRK0FGZ44U93EZ2Io0l+NQKcw3WonYgA7Bxz32tLE6Q3DL5iBmvrhNKft5zoWBb BsBYRESNeo5SqqXAVsXW6++XTwGS68b3JCRKJr//3obUdsaTrdDBfnENlyuUaejww9ES OFHXQCwzbL3tjBj/Spa73AsRT/9MCEZbaBZQhIdcZMREA3LS4r7TDywJC02++0ufjYvS LgCMeby00HgibiKd9xcFSgEIEMekvYKXAVmsR1WXQhoXIBTh5ZLhbX/eEsPNcSjKS5D1 qAEw== X-Gm-Message-State: ALoCoQmpqfFM2EpNkdLdc4HYjva/rspSZAsg6FXty5LhUuOQFtPFrJdGCDEDsZkSXvwPyEiYafrY X-Received: by 10.236.26.83 with SMTP id b59mr264524yha.51.1389776749960; Wed, 15 Jan 2014 01:05:49 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.17.137 with SMTP id o9ls491386qed.88.gmail; Wed, 15 Jan 2014 01:05:49 -0800 (PST) X-Received: by 10.52.166.6 with SMTP id zc6mr658008vdb.10.1389776749897; Wed, 15 Jan 2014 01:05:49 -0800 (PST) Received: from mail-vb0-f43.google.com (mail-vb0-f43.google.com [209.85.212.43]) by mx.google.com with ESMTPS id ec16si1381471veb.48.2014.01.15.01.05.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 15 Jan 2014 01:05:49 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.43 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.43; Received: by mail-vb0-f43.google.com with SMTP id p5so289605vbn.2 for ; Wed, 15 Jan 2014 01:05:49 -0800 (PST) X-Received: by 10.58.181.230 with SMTP id dz6mr541747vec.35.1389776749825; Wed, 15 Jan 2014 01:05:49 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.59.13.131 with SMTP id ey3csp259099ved; Wed, 15 Jan 2014 01:05:49 -0800 (PST) X-Received: by 10.66.142.233 with SMTP id rz9mr1240615pab.71.1389776748963; Wed, 15 Jan 2014 01:05:48 -0800 (PST) Received: from mail-pb0-f49.google.com (mail-pb0-f49.google.com [209.85.160.49]) by mx.google.com with ESMTPS id hy2si3076596pbb.229.2014.01.15.01.05.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 15 Jan 2014 01:05:48 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.49 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.49; Received: by mail-pb0-f49.google.com with SMTP id up15so347576pbc.8 for ; Wed, 15 Jan 2014 01:05:48 -0800 (PST) X-Received: by 10.66.146.199 with SMTP id te7mr1336171pab.106.1389776748435; Wed, 15 Jan 2014 01:05:48 -0800 (PST) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id qf7sm8558209pac.14.2014.01.15.01.05.45 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 15 Jan 2014 01:05:47 -0800 (PST) From: Sachin Kamat To: linux-gpio@vger.kernel.org Cc: linux-samsung-soc@vger.kernel.org, linus.walleij@linaro.org, kgene.kim@samsung.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/1] ARM: S5P[v210|c100|64x0]: Fix build error Date: Wed, 15 Jan 2014 14:31:29 +0530 Message-Id: <1389776489-29853-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.43 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , gpio-samsung.h header file introduced by commit 93177be0910c ("ARM: S3C[24|64]xx: move includes back under scope") is required only by S3C[24|64]xx machines. Include them conditionally to avoid the following build errors for other machine configurations. drivers/gpio/gpio-samsung.c:35:31: fatal error: mach/gpio-samsung.h: No such file or directory arch/arm/plat-samsung/pm-gpio.c:22:31: fatal error: mach/gpio-samsung.h: No such file or directory Signed-off-by: Sachin Kamat --- Only compile tested. --- arch/arm/plat-samsung/pm-gpio.c | 3 +++ drivers/gpio/gpio-samsung.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/arch/arm/plat-samsung/pm-gpio.c b/arch/arm/plat-samsung/pm-gpio.c index a9f7a37c4173..dd4c15d0d68f 100644 --- a/arch/arm/plat-samsung/pm-gpio.c +++ b/arch/arm/plat-samsung/pm-gpio.c @@ -19,7 +19,10 @@ #include #include +#if defined(CONFIG_ARCH_S3C24XX) || defined(CONFIG_ARCH_S3C64XX) #include +#endif + #include #include diff --git a/drivers/gpio/gpio-samsung.c b/drivers/gpio/gpio-samsung.c index 9741cce11df5..a85e00bf9834 100644 --- a/drivers/gpio/gpio-samsung.c +++ b/drivers/gpio/gpio-samsung.c @@ -32,7 +32,10 @@ #include #include + +#if defined(CONFIG_ARCH_S3C24XX) || defined(CONFIG_ARCH_S3C64XX) #include +#endif #include #include