spi: gpio: Use devm_spi_register_master()
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Wed, 3 Apr 2019 04:01:33 +0000 (21:01 -0700)
committerMark Brown <broonie@kernel.org>
Mon, 8 Apr 2019 07:11:18 +0000 (14:11 +0700)
commit79567c1a321e7396e734135d56950311dde07db2
treeb056fe96140abd16dfc7da206ebdcc43ae15f8c0
parent45beec3519983cb11768cd3ee350f44975bf4cea
spi: gpio: Use devm_spi_register_master()

Replace spi_bitbang_start() with a combination of spi_bitbang_init()
and devm_spi_register_master() and drop all of the explicit
cleanup-related code that's no longer necessary.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Chris Healy <cphealy@gmail.com>
Cc: linux-spi@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-gpio.c