aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2013-03-05 12:05:16 +0200
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-03-12 18:30:56 +0000
commitc134634077942404a285f6b64bc1ce5932ac22fe (patch)
treeafd97d69a17ee6adae25fe25459cb59c65b75748 /drivers
parentf8043872e79614ae9c5aaf7804e0b0ccb1932ed0 (diff)
downloadlinaro-lsk-c134634077942404a285f6b64bc1ce5932ac22fe.tar.gz
spi/pxa2xx-pci: correct the return value check of pcim_iomap_regions()
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> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/spi/spi-pxa2xx-pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-pxa2xx-pci.c b/drivers/spi/spi-pxa2xx-pci.c
index 0a11dcfc631..74bc1877565 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));