spi: xcomm: make use of devm_spi_alloc_host()

Use devm_spi_alloc_host() so that there's no need to call
spi_controller_put() in the error path.

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://patch.msgid.link/20240705-dev-spi-xcomm-gpiochip-v2-2-b10842fc9636@analog.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Nuno Sa 2024-07-05 17:12:40 +02:00 • committed by Mark Brown
commit e8ba259764
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0