spi: microchip-core: switch to use devm_spi_alloc_master()
authorYang Yingliang <yangyingliang@huawei.com>
Wed, 13 Jul 2022 02:56:56 +0000 (10:56 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 13 Jul 2022 12:48:59 +0000 (13:48 +0100)
commit5d56d8974d1e5fa5d7d0761037377e03f6edcc66
tree9ecb62f76ce1033861f383a4ef918fdfda28710f
parente82c6d62a1f2347cde69c169fcf37e4d26f89b98
spi: microchip-core: switch to use devm_spi_alloc_master()

Switch to use devm_spi_alloc_master() to simpify error path.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20220713025657.3524506-3-yangyingliang@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-microchip-core.c