diff options
| author | Johan Hovold <johan@kernel.org> | 2026-03-12 18:18:16 +0300 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-03-16 21:36:05 +0300 |
| commit | edc463d72d697ff22da8ba96c0fcb25f3586d9a2 (patch) | |
| tree | 677e40716243e84afebb20d4f8a4f7ee5219e3e6 | |
| parent | d5b4cb41b9a244e5571f9a589e77cc38ac5ebcc3 (diff) | |
| download | linux-edc463d72d697ff22da8ba96c0fcb25f3586d9a2.tar.xz | |
spi: fix misleading controller registration kernel-doc
The controller reference count is not decremented on registration
failures (and has not been for a very long time) contrary to what the
outdated kernel-doc says.
Drop the entire sentence about return values which are now documented in
the Return section.
Fixes: b885244eb262 ("[PATCH] spi: add spi_driver to SPI framework")
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20260312151817.32100-5-johan@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
| -rw-r--r-- | drivers/spi/spi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index bfc42b75549a..34aca18a96d8 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -3388,8 +3388,8 @@ static int spi_controller_id_alloc(struct spi_controller *ctlr, int start, int e * device identification, boards need configuration tables telling which * chip is at which address. * - * This must be called from context that can sleep. It returns zero on - * success, else a negative error code (dropping the controller's refcount). + * This must be called from context that can sleep. + * * After a successful return, the caller is responsible for calling * spi_unregister_controller(). * |
