]> git.baikalelectronics.ru Git - kernel.git/commit
spi: document odd controller reference handling
authorJohan Hovold <johan@kernel.org>
Mon, 30 Oct 2017 10:35:26 +0000 (11:35 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 31 Oct 2017 11:09:43 +0000 (11:09 +0000)
commitd8c91999a935b8aa3291d667a76e6c84458ae9e8
tree2239373187c97df66d42397dd922c113c8a84ffa
parent2018862bdad13479b663e0e9615d7c6fcaa89285
spi: document odd controller reference handling

Document the fact that a reference to the controller is dropped as part
of deregistration.

This is an odd pattern as the reference is typically taken in
__spi_alloc_controller() rather than spi_register_controller(). Most
controller drivers gets it right these days and notably the
device-managed interface relies on this behaviour.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c