]> git.baikalelectronics.ru Git - kernel.git/commit
spi: mt65xx: Simplify probe function with devm_spi_alloc_master
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 7 Apr 2022 11:44:21 +0000 (13:44 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 19 Apr 2022 15:32:06 +0000 (16:32 +0100)
commit5b7d4c896401129f773002d12571f2fe54967024
tree59f734e8aa78d945b74b194673ea297abff1bd73
parentf7c03ba36c21fc81fa55e8660d02d8d7c04157b4
spi: mt65xx: Simplify probe function with devm_spi_alloc_master

Switch to the devm variant of spi_alloc_master() to save some gotos.
This patch is a cleanup that brings no functional changes.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220407114428.167091-2-angelogioacchino.delregno@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-mt65xx.c