spi: spi_register_controller(): free bus id on error paths

Some error paths leave the bus id allocated. As a result the IDR
allocation will fail after a deferred probe. Fix by freeing the bus id
always on error.

Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Message-Id: <20200304111740.27915-1-aaro.koskinen@nokia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Aaro Koskinen 2020-03-04 13:17:40 +02:00 • committed by Mark Brown
commit f9981d4f50
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0