devm_spi_alloc_master —
resource-managed spi_alloc_master
struct spi_master * devm_spi_alloc_master ( | struct device * dev, |
unsigned int size) ; |
Allocate an SPI master and automatically release a reference on it
when dev
is unbound from its driver. Drivers are thus relieved from
having to call spi_master_put
.
The arguments to this function are identical to spi_alloc_master
.