From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: [PATCH 08/14] ASoC: Make OpenFirmware helper include file conditional Date: Tue, 29 Jul 2008 11:42:29 +0100 Message-ID: <1217328155-30158-8-git-send-email-broonie@opensource.wolfsonmicro.com> References: <1217328155-30158-1-git-send-email-broonie@opensource.wolfsonmicro.com> <1217328155-30158-2-git-send-email-broonie@opensource.wolfsonmicro.com> <1217328155-30158-3-git-send-email-broonie@opensource.wolfsonmicro.com> <1217328155-30158-4-git-send-email-broonie@opensource.wolfsonmicro.com> <1217328155-30158-5-git-send-email-broonie@opensource.wolfsonmicro.com> <1217328155-30158-6-git-send-email-broonie@opensource.wolfsonmicro.com> <1217328155-30158-7-git-send-email-broonie@opensource.wolfsonmicro.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from opensource2.wolfsonmicro.com (opensource.wolfsonmicro.com [80.75.67.52]) by alsa0.perex.cz (Postfix) with ESMTP id 6147E1037FC for ; Tue, 29 Jul 2008 12:42:46 +0200 (CEST) In-Reply-To: <1217328155-30158-7-git-send-email-broonie@opensource.wolfsonmicro.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Takashi Iwai Cc: alsa-devel@alsa-project.org, Mark Brown List-Id: alsa-devel@alsa-project.org The OpenFirmware API headers don't build on all platforms so ensure that they are not included unless they are being used. Signed-off-by: Mark Brown Acked-by: Grant Likely --- include/sound/soc-of-simple.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/include/sound/soc-of-simple.h b/include/sound/soc-of-simple.h index 696fc51..a064e19 100644 --- a/include/sound/soc-of-simple.h +++ b/include/sound/soc-of-simple.h @@ -7,6 +7,8 @@ #ifndef _INCLUDE_SOC_OF_H_ #define _INCLUDE_SOC_OF_H_ +#if defined(CONFIG_SND_SOC_OF_SIMPLE) || defined(CONFIG_SND_SOC_OF_SIMPLE_MODULE) + #include #include @@ -18,4 +20,6 @@ int of_snd_soc_register_platform(struct snd_soc_platform *platform, struct device_node *node, struct snd_soc_dai *cpu_dai); +#endif + #endif /* _INCLUDE_SOC_OF_H_ */ -- 1.5.6.3