spi: ti-qspi: revise ti_qspi_probe() failure flow
authorPrahlad V <prahlad.eee@gmail.com>
Thu, 16 Feb 2017 20:33:35 +0000 (02:03 +0530)
committerMark Brown <broonie@kernel.org>
Fri, 17 Feb 2017 11:24:51 +0000 (11:24 +0000)
commitcce59c225920309e03c2ea350ed6a0e233e33963
tree17c48ac327b3f93ff06e18789ad894546250ad3e
parentfafd67940774733fa97f4b09412aea6981b82e0a
spi: ti-qspi: revise ti_qspi_probe() failure flow

call spi_master_put() in case of failures after spi_alloc_master().
call pm_runtime_disable() in case of failures after pm_runtime_enable().

Signed-off-by: Prahlad V <prahlad.eee@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-ti-qspi.c