Skip to content

Commit

Permalink
Merge remote-tracking branch 'spi/fix/core' into spi-linus
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Brown committed Nov 28, 2013
2 parents 6ce4eac + 4b92894 commit b8aba76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b8aba76

Please sign in to comment.