]> git.ipfire.org Git - thirdparty/linux.git/commit
spi: fix misleading controller deregistration kernel-doc
authorJohan Hovold <johan@kernel.org>
Thu, 12 Mar 2026 15:18:17 +0000 (16:18 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 16 Mar 2026 18:36:06 +0000 (18:36 +0000)
commit3f174274d2249342df00d43fdef25511c3d3565a
tree95a1613446327689a26a5daf9a41243f06ecb202
parentedc463d72d697ff22da8ba96c0fcb25f3586d9a2
spi: fix misleading controller deregistration kernel-doc

The controller reference count is not decremented on deregistration if
the controller has been allocated using devm_spi_alloc_host/target().

Amend the kernel-doc for devm_spi_register_controller() and
spi_unregister_controller() so that it reflects this (more recent)
behaviour.

Fixes: 5e844cc37a5c ("spi: Introduce device-managed SPI controller allocation")
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20260312151817.32100-6-johan@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c