]> git.karo-electronics.de Git - karo-tx-linux.git/commit
spi: core: Add devm_spi_register_master()
authorMark Brown <broonie@linaro.org>
Sat, 31 Aug 2013 17:50:52 +0000 (18:50 +0100)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:56:10 +0000 (09:56 +0800)
commit6d3c57be8578ae11d4940519a472bc7dd8b917e9
tree7ff1c360a19d3e52cb2a4e33b2a49a58fe679600
parentd260f7b920d9d046c77968aadcc4bc9e9f5692ac
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>
Documentation/driver-model/devres.txt
drivers/spi/spi.c
include/linux/spi/spi.h