spi: rockchip: disable runtime pm when in err case
authorShawn Lin <shawn.lin@rock-chips.com>
Mon, 15 Feb 2016 08:27:58 +0000 (16:27 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 15 Feb 2016 12:19:53 +0000 (12:19 +0000)
commitb8659adda9e295eca0b10a67f3b15a8644c8ed6f
treeaa19fe86cbdaf5c31a3419a95c7b2a074610bd55
parent92e963f50fc74041b5e9e744c330dca48e04f08d
spi: rockchip: disable runtime pm when in err case

Before registering master, driver enables runtime pm.
This patch  pm_runtime_disable in err case while probing
driver to balance pm reference count.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rockchip.c