diff options
author | Mark Brown <broonie@linaro.org> | 2013-06-24 13:28:29 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-06-24 13:28:29 +0200 |
commit | 332ec81d413bd4e7375c25d628e7f658c37138f6 (patch) | |
tree | c4dc242a2161f38c4a45385cff2199400795e622 | |
parent | Merge remote-tracking branch 'spi/fix/pxa' into spi-linus (diff) | |
parent | spi: s3c64xx: Fix pm_runtime_get_sync() return value check (diff) | |
download | linux-332ec81d413bd4e7375c25d628e7f658c37138f6.tar.xz linux-332ec81d413bd4e7375c25d628e7f658c37138f6.zip |
Merge remote-tracking branch 'spi/fix/s3c64xx' into spi-linus
-rw-r--r-- | drivers/spi/spi-s3c64xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 5000586cb98d..71cc3e6ef47c 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -444,7 +444,7 @@ static int s3c64xx_spi_prepare_transfer(struct spi_master *spi) } ret = pm_runtime_get_sync(&sdd->pdev->dev); - if (ret != 0) { + if (ret < 0) { dev_err(dev, "Failed to enable device: %d\n", ret); goto out_tx; } |