OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b60c49
)
spi: amd: Pass probe errors back to driver core
author
Lukas Wunner
<lukas@wunner.de>
Mon, 4 May 2020 11:12:02 +0000
(13:12 +0200)
committer
Mark Brown
<broonie@kernel.org>
Mon, 4 May 2020 16:18:46 +0000
(17:18 +0100)
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>
drivers/spi/spi-amd.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-amd.c
b/drivers/spi/spi-amd.c
index
65b53ee
..
a4248b9
100644
(file)
--- 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)