public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] spi/pxa2xx-pci: correct the return value check of pcim_iomap_regions()
@ 2013-03-05 10:05 Mika Westerberg
  2013-03-05 10:05 ` [PATCH 2/2] spi/pxa2xx: enable multiblock DMA transfers for LPSS devices Mika Westerberg
  2013-03-12 18:31 ` [PATCH 1/2] spi/pxa2xx-pci: correct the return value check of pcim_iomap_regions() Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Mika Westerberg @ 2013-03-05 10:05 UTC (permalink / raw)
  To: linux-kernel
  Cc: Eric Miao, Russell King, Haojian Zhuang, Grant Likely, Mark Brown,
	Mika Westerberg

The function returns 0 on success and negative errno in case of failure.
Fix this.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
---
 drivers/spi/spi-pxa2xx-pci.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/spi-pxa2xx-pci.c b/drivers/spi/spi-pxa2xx-pci.c
index 364964d..48abae5 100644
--- a/drivers/spi/spi-pxa2xx-pci.c
+++ b/drivers/spi/spi-pxa2xx-pci.c
@@ -22,7 +22,7 @@ static int ce4100_spi_probe(struct pci_dev *dev,
 		return ret;
 
 	ret = pcim_iomap_regions(dev, 1 << 0, "PXA2xx SPI");
-	if (!ret)
+	if (ret)
 		return ret;
 
 	memset(&spi_pdata, 0, sizeof(spi_pdata));
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-03-12 18:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-05 10:05 [PATCH 1/2] spi/pxa2xx-pci: correct the return value check of pcim_iomap_regions() Mika Westerberg
2013-03-05 10:05 ` [PATCH 2/2] spi/pxa2xx: enable multiblock DMA transfers for LPSS devices Mika Westerberg
2013-03-12 18:31 ` [PATCH 1/2] spi/pxa2xx-pci: correct the return value check of pcim_iomap_regions() Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox