Commit cc17fbec authored by Lukas Wunner's avatar Lukas Wunner Committed by Mark Brown

spi: amd: Pass probe errors back to driver core

If probing fails, the AMD SPI driver pretends success to the driver core
by returning 0.  Return the errno instead.
Signed-off-by: default avatarLukas Wunner <lukas@wunner.de>
Link: https://lore.kernel.org/r/689f29a359718dab4f5de9ee66c02ea97b3bd9e8.1588590210.git.lukas@wunner.deSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 2b60c49f
...@@ -294,7 +294,7 @@ static int amd_spi_probe(struct platform_device *pdev) ...@@ -294,7 +294,7 @@ static int amd_spi_probe(struct platform_device *pdev)
err_free_master: err_free_master:
spi_master_put(master); spi_master_put(master);
return 0; return err;
} }
static int amd_spi_remove(struct platform_device *pdev) static int amd_spi_remove(struct platform_device *pdev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment