From: Ernst Schwab Subject: Re: [PATCH 1/2 V2] spi/mmc_spi: SPI bus locking API, using mutex Date: Thu, 18 Feb 2010 13:50:26 +0100 Message-ID: <20100218135026.b29d4087.eschwab@online.de> References: <20100218124425.599c4d76.eschwab@online.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, yi.li-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org, vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org To: Grant Likely , Kumar Gala , David Brownell Return-path: In-Reply-To: <20100218124425.599c4d76.eschwab-BGeptl67XyCzQB+pC5nmwQ@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: spi-devel-general-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-spi.vger.kernel.org Followup patch to correct missing return value. Signed-off-by: Ernst Schwab --- Apparently I missed to look at the compiler warnings, sorry for that. 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); ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev