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 <[email protected]>
This commit is contained in:
Mark Brown 2013-08-31 18:50:52 +01:00
commit 666d5b4c74
3 changed files with 40 additions and 0 deletions

View file

@ -302,3 +302,6 @@ PHY
SLAVE DMA ENGINE
devm_acpi_dma_controller_register()
SPI
devm_spi_register_master()