]> 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)
commitca6b714a639a5c1cee271c8071e49c10c59515b8
tree2239373187c97df66d42397dd922c113c8a84ffa
parent384fde7ed224f283f11ef2a592b05d4a29492aa8
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