summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-08-31 18:50:52 +0100
committerJason Liu <r64343@freescale.com>2013-10-30 09:56:10 +0800
commit6d3c57be8578ae11d4940519a472bc7dd8b917e9 (patch)
tree7ff1c360a19d3e52cb2a4e33b2a49a58fe679600 /Documentation
parentd260f7b920d9d046c77968aadcc4bc9e9f5692ac (diff)
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> Signed-off-by: Huang Shijie <b32955@freescale.com>
Diffstat (limited to 'Documentation')
-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 b4671459857f..d4b64589cc41 100644
--- a/Documentation/driver-model/devres.txt
+++ b/Documentation/driver-model/devres.txt
@@ -293,3 +293,6 @@ PWM
PHY
devm_usb_get_phy()
devm_usb_put_phy()
+
+SPI
+ devm_spi_register_master()