diff options
author | Lukas Wunner <lukas@wunner.de> | 2020-05-04 13:12:02 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-05-04 17:18:46 +0100 |
commit | cc17fbec2e785926dafce65d014f8301847dff40 (patch) | |
tree | a269058698d431db29b4412d01824e37df8a0b47 /drivers/spi/spi-amd.c | |
parent | 2b60c49f3ca0648c5b02b60dc0f5b9e2c274bfb5 (diff) | |
download | lwn-cc17fbec2e785926dafce65d014f8301847dff40.tar.gz lwn-cc17fbec2e785926dafce65d014f8301847dff40.zip |
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: Lukas Wunner <lukas@wunner.de>
Link: https://lore.kernel.org/r/689f29a359718dab4f5de9ee66c02ea97b3bd9e8.1588590210.git.lukas@wunner.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-amd.c')
-rw-r--r-- | drivers/spi/spi-amd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-amd.c b/drivers/spi/spi-amd.c index 65b53eee5be9..a4248b97b67e 100644 --- a/drivers/spi/spi-amd.c +++ b/drivers/spi/spi-amd.c @@ -294,7 +294,7 @@ static int amd_spi_probe(struct platform_device *pdev) err_free_master: spi_master_put(master); - return 0; + return err; } static int amd_spi_remove(struct platform_device *pdev) |