spi: mediatek: revise mtk_spi_probe() failure flow
authorLeilk Liu <leilk.liu@mediatek.com>
Wed, 25 Nov 2015 09:50:38 +0000 (17:50 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 25 Nov 2015 11:55:00 +0000 (11:55 +0000)
commite38da37fa8f410e61f2a6c03b3d14fec11b00259
tree2cc8ce8d31e15fc6810573b3997a56836bc5ce8e
parent4d920471d718618dab2c1dc867b1438c84b8d8ff
spi: mediatek: revise mtk_spi_probe() failure flow

mtk_spi_probe() calls pm_runtime_enable(), after
pm_runtime_enable() is called, it should call
pm_runtime_disable() in the failure flow.

Signed-off-by: Leilk Liu <leilk.liu@mediatek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-mt65xx.c