Browse Source

Merge remote-tracking branch 'spi/fix/s3c64xx' into spi-linus

Mark Brown 12 years ago
parent
commit
332ec81d41
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/spi/spi-s3c64xx.c

+ 1 - 1
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;
 	}