summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-11-28 12:31:35 +0100
committerMark Brown <broonie@linaro.org>2013-11-28 12:31:35 +0100
commitb8aba7611b9a5a1f67f081be84270c67baf4d2c3 (patch)
treebc21aafb33038ca6b30fd698997ab460b23ea1c2 /drivers
parentLinux 3.13-rc1 (diff)
parentspi: core: invert success test in devm_spi_register_master (diff)
downloadlinux-b8aba7611b9a5a1f67f081be84270c67baf4d2c3.tar.xz
linux-b8aba7611b9a5a1f67f081be84270c67baf4d2c3.zip
Merge remote-tracking branch 'spi/fix/core' into spi-linus
Diffstat (limited to 'drivers')
-rw-r--r--drivers/spi/spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index 18cc625d887f..349ebba4b199 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -1415,7 +1415,7 @@ int devm_spi_register_master(struct device *dev, struct spi_master *master)
return -ENOMEM;
ret = spi_register_master(master);
- if (ret != 0) {
+ if (!ret) {
*ptr = master;
devres_add(dev, ptr);
} else {