aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/driver-model
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-08-31 18:50:52 +0100
committerMark Brown <broonie@linaro.org>2013-09-17 00:59:36 +0100
commit666d5b4c742ba666eb68b467d777b7862f362ae5 (patch)
treeefb1a0d621991a55effac8cc4f61f669542308e2 /Documentation/driver-model
parentLinux 3.12-rc1 (diff)
downloadlinux-dev-666d5b4c742ba666eb68b467d777b7862f362ae5.tar.xz
linux-dev-666d5b4c742ba666eb68b467d777b7862f362ae5.zip
spi: core: Add devm_spi_register_master()
Help simplify the cleanup code for SPI master drivers by providing a managed master registration function, ensuring that the master is automatically unregistered whenever the device is unbound. Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'Documentation/driver-model')
-rw-r--r--Documentation/driver-model/devres.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/driver-model/devres.txt b/Documentation/driver-model/devres.txt
index fcb34a5697ea..84ea8216cc7d 100644
--- a/Documentation/driver-model/devres.txt
+++ b/Documentation/driver-model/devres.txt
@@ -302,3 +302,6 @@ PHY
SLAVE DMA ENGINE
devm_acpi_dma_controller_register()
+
+SPI
+ devm_spi_register_master()