From patchwork Thu Aug 19 14:40:08 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 120364 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o7JEehji030356 for ; Thu, 19 Aug 2010 14:40:43 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753686Ab0HSOjy (ORCPT ); Thu, 19 Aug 2010 10:39:54 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:35403 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with SMTP id S1753650Ab0HSOjx (ORCPT ); Thu, 19 Aug 2010 10:39:53 -0400 Received: (qmail invoked by alias); 19 Aug 2010 14:39:51 -0000 Received: from p508982A3.dip0.t-ipconnect.de (EHLO axis700.grange) [80.137.130.163] by mail.gmx.net (mp018) with SMTP; 19 Aug 2010 16:39:51 +0200 X-Authenticated: #20450766 X-Provags-ID: V01U2FsdGVkX1+/Pc0jwly/wYqjzfzrpJCJ4qrZ/1T5rOEcDM7JyQ fRHHoFTrsoN8DP Received: from lyakh (helo=localhost) by axis700.grange with local-esmtp (Exim 4.63) (envelope-from ) id 1Om6Ho-0007d8-HG; Thu, 19 Aug 2010 16:40:08 +0200 Date: Thu, 19 Aug 2010 16:40:08 +0200 (CEST) From: Guennadi Liakhovetski To: Russell King - ARM Linux cc: linux-sh@vger.kernel.org, Marin Mitov , =?ISO-8859-15?Q?Uwe_Kleine-K=F6nig?= , =?ISO-8859-15?Q?Philippe_R=E9tornaz?= , Greg Kroah-Hartman , linux-arm-kernel@lists.infradead.org, Janusz Krzysztofik Subject: [PATCH 2/5] DMA: dma_declare_coherent_memory() should return an error if unsupported In-Reply-To: Message-ID: References: MIME-Version: 1.0 X-Y-GMX-Trusted: 0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 19 Aug 2010 14:40:43 +0000 (UTC) diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h index ce29b81..77ce97f 100644 --- a/include/linux/dma-mapping.h +++ b/include/linux/dma-mapping.h @@ -163,7 +163,7 @@ static inline int dma_declare_coherent_memory(struct device *dev, dma_addr_t bus_addr, dma_addr_t device_addr, size_t size, int flags) { - return 0; + return -EINVAL; } static inline void