From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932595Ab0JFHqd (ORCPT ); Wed, 6 Oct 2010 03:46:33 -0400 Received: from wolverine02.qualcomm.com ([199.106.114.251]:9385 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932324Ab0JFHn1 (ORCPT ); Wed, 6 Oct 2010 03:43:27 -0400 X-IronPort-AV: E=McAfee;i="5400,1158,6127"; a="56772929" X-IronPort-AV: E=Sophos;i="4.57,288,1283756400"; d="scan'208";a="20252789" From: Jeff Ohlstein To: Daniel Walker Cc: linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Daniel Walker , Jeff Ohlstein , David Brown , Bryan Huntsman , Russell King , San Mehat , Stepan Moskovchenko , Gregory Bean Subject: [PATCH 10/20 v2] msm: dma: add stub functions for dma features not yet present on 8x60 Date: Wed, 6 Oct 2010 00:42:49 -0700 Message-Id: <1286350979-19328-11-git-send-email-johlstei@codeaurora.org> X-Mailer: git-send-email 1.7.3.1 In-Reply-To: <1286350979-19328-1-git-send-email-johlstei@codeaurora.org> References: <1286350979-19328-1-git-send-email-johlstei@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Daniel Walker Signed-off-by: Daniel Walker Signed-off-by: Jeff Ohlstein --- arch/arm/mach-msm/include/mach/dma.h | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-msm/include/mach/dma.h b/arch/arm/mach-msm/include/mach/dma.h index 00f9bbf..05583f5 100644 --- a/arch/arm/mach-msm/include/mach/dma.h +++ b/arch/arm/mach-msm/include/mach/dma.h @@ -32,10 +32,18 @@ struct msm_dmov_cmd { void *data; }; +#ifndef CONFIG_ARCH_MSM8X60 void msm_dmov_enqueue_cmd(unsigned id, struct msm_dmov_cmd *cmd); void msm_dmov_stop_cmd(unsigned id, struct msm_dmov_cmd *cmd, int graceful); int msm_dmov_exec_cmd(unsigned id, unsigned int cmdptr); - +#else +static inline +void msm_dmov_enqueue_cmd(unsigned id, struct msm_dmov_cmd *cmd) { } +static inline +void msm_dmov_stop_cmd(unsigned id, struct msm_dmov_cmd *cmd, int graceful) { } +static inline +int msm_dmov_exec_cmd(unsigned id, unsigned int cmdptr) { return -EIO; } +#endif #define DMOV_SD0(off, ch) (MSM_DMOV_BASE + 0x0000 + (off) + ((ch) << 2)) -- 1.7.2.1 Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.