spi: core: Add devm_spi_register_master()
authorMark Brown <broonie@linaro.org>
Sat, 31 Aug 2013 17:50:52 +0000 (18:50 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 16 Sep 2013 23:59:36 +0000 (00:59 +0100)
commit666d5b4c742ba666eb68b467d777b7862f362ae5
treeefb1a0d621991a55effac8cc4f61f669542308e2
parent272b98c6455f00884f0350f775c5342358ebb73f
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>
Documentation/driver-model/devres.txt
drivers/spi/spi.c
include/linux/spi/spi.h