spi: amd: Make use of devm_spi_alloc_master()
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Wed, 6 Jul 2022 10:06:23 +0000 (13:06 +0300)
committerMark Brown <broonie@kernel.org>
Wed, 6 Jul 2022 14:20:47 +0000 (15:20 +0100)
commit2e063bb1d4272e7b64ef813566691ea8ea192f9c
tree8a6151d3ffb16243ef1268b014a741db6802a6ec
parent6ece49c56965544262523dae4a071ace3db63507
spi: amd: Make use of devm_spi_alloc_master()

Make use of the devm variant of spi_alloc_master() in order to cleanup
and simplify the error handling in the probe function by getting rid
of the goto statements.

Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Link: https://lore.kernel.org/r/20220706100626.1234731-3-cristian.ciocaltea@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-amd.c