spi: meson-spicc: Fix error handling in meson_spicc_probe()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Sat, 28 Apr 2018 22:46:23 +0000 (01:46 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Aug 2018 05:50:38 +0000 (07:50 +0200)
commit17b26041363f7d4589e23bcad21f62dbfcf50bf8
tree49afd0c7da3c17c35f29a8c4b57b8df5c4bb4a00
parentc9e5888ec8ae248d30b499a0add51047ef135b03
spi: meson-spicc: Fix error handling in meson_spicc_probe()

[ Upstream commit ded5fa4e8bac25612caab8f0822691308a28a552 ]

If devm_spi_register_master() fails in meson_spicc_probe(),
spicc->core is left undisabled. The patch fixes that.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/spi/spi-meson-spicc.c