diff options
author | Mark Brown <broonie@linaro.org> | 2013-11-28 12:31:35 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-11-28 12:31:35 +0100 |
commit | b8aba7611b9a5a1f67f081be84270c67baf4d2c3 (patch) | |
tree | bc21aafb33038ca6b30fd698997ab460b23ea1c2 /drivers | |
parent | Linux 3.13-rc1 (diff) | |
parent | spi: core: invert success test in devm_spi_register_master (diff) | |
download | linux-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.c | 2 |
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 { |