]> Pileus Git - ~andy/linux/blobdiff - drivers/spi/spi-s3c64xx.c
Merge remote-tracking branch 'regulator/topic/max8973' into regulator-next
[~andy/linux] / drivers / spi / spi-s3c64xx.c
index 5000586cb98da2331b0cbe1c31ec26b0f6f40eb4..71cc3e6ef47ca770dd73c4d55f8153d42a8471aa 100644 (file)
@@ -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;
        }