From patchwork Thu Feb 18 12:50:26 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ernst Schwab X-Patchwork-Id: 80297 X-Patchwork-Delegate: grant.likely@secretlab.ca Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1ICuJMw003496 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 18 Feb 2010 12:57:00 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-1.v29.ch3.sourceforge.com) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1Ni5vW-0002DX-1T; Thu, 18 Feb 2010 12:56:18 +0000 Received: from sfi-mx-2.v28.ch3.sourceforge.com ([172.29.28.122] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1Ni5vU-0002C9-4w for spi-devel-general@lists.sourceforge.net; Thu, 18 Feb 2010 12:56:16 +0000 X-ACL-Warn: Received: from moutng.kundenserver.de ([212.227.126.187]) by sfi-mx-2.v28.ch3.sourceforge.com with esmtp (Exim 4.69) id 1Ni5vS-0006I6-ML; Thu, 18 Feb 2010 12:56:15 +0000 Received: from ip065 (koln-4db4bb21.pool.mediaWays.net [77.180.187.33]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0MMamg-1NavdD3mta-008SuG; Thu, 18 Feb 2010 13:50:25 +0100 Date: Thu, 18 Feb 2010 13:50:26 +0100 From: Ernst Schwab To: Grant Likely , Kumar Gala , David Brownell Message-Id: <20100218135026.b29d4087.eschwab@online.de> In-Reply-To: <20100218124425.599c4d76.eschwab@online.de> References: <20100218124425.599c4d76.eschwab@online.de> X-Mailer: Sylpheed 3.0.0beta8 (GTK+ 2.10.14; i686-pc-mingw32) Mime-Version: 1.0 X-Provags-ID: V01U2FsdGVkX1+m5irkjGU10QcjXVteZek/xydzeBJTrAm6pSk 3wsSKfS+ymwfA/pjRgbNOp5/aV0jrKosK9SyCZCyUulzUP0E4Q nc6mpUrZiG6LAPSKnk7P66iPIDfy9ga X-Spam-Score: -0.0 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -0.0 SPF_HELO_PASS SPF: HELO matches SPF record X-Headers-End: 1Ni5vS-0006I6-ML Cc: spi-devel-general@lists.sourceforge.net, yi.li@analog.com, vapier@gentoo.org Subject: Re: [spi-devel-general] [PATCH 1/2 V2] spi/mmc_spi: SPI bus locking API, using mutex X-BeenThere: spi-devel-general@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: Linux SPI core/device drivers discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: spi-devel-general-bounces@lists.sourceforge.net X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 18 Feb 2010 12:57:00 +0000 (UTC) diff -upr a/drivers/spi/spi.c b/drivers/spi/spi.c --- a/drivers/spi/spi.c +++ a/drivers/spi/spi.c @@ -852,7 +852,7 @@ static int __spi_sync(struct spi_device */ int spi_sync(struct spi_device *spi, struct spi_message *message) { - __spi_sync(spi, message, 0); + return __spi_sync(spi, message, 0); } EXPORT_SYMBOL_GPL(spi_sync); @@ -874,7 +874,7 @@ EXPORT_SYMBOL_GPL(spi_sync); */ int spi_sync_locked(struct spi_device *spi, struct spi_message *message) { - __spi_sync(spi, message, 1); + return __spi_sync(spi, message, 1); } EXPORT_SYMBOL_GPL(spi_sync_locked);