diff options
author | Mans Rullgard <mans@mansr.com> | 2016-01-21 14:55:56 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-01-27 13:20:45 +0000 |
commit | f212c6d8c2b21c1e1d0158d38a7c37f4427f3848 (patch) | |
tree | 575174911ae08cd18c05bb32e62556a3631060ba /drivers/iio | |
parent | 92e963f50fc74041b5e9e744c330dca48e04f08d (diff) | |
download | blackbird-op-linux-f212c6d8c2b21c1e1d0158d38a7c37f4427f3848.tar.gz blackbird-op-linux-f212c6d8c2b21c1e1d0158d38a7c37f4427f3848.zip |
ASoC: mxs-saif: fix clk_prepare() without matching clk_unprepare()
The clk_prepare() call in hw_params() has no matching clk_unprepare(),
leaving the clk with an ever-increasing prepare count. Moreover,
hw_params() can be called multiple times which would again leave us
with a runaway prepare count. Fix this by moving the clk_prepare()
call to the startup() function and adding a shutdown() function with
a matching clk_unprepare() as these operations are already correctly
bracketed by soc-core.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/iio')
0 files changed, 0 insertions, 0 deletions