]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite815a6d28326e923e7341c9992e8e363c0ecbdb2
tree8a6151d3ffb16243ef1268b014a741db6802a6ec
parentb268b13fc002af5a180a237d443b335118a85f48
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