linux-sg2042/sound/soc/kirkwood
Shawn Guo aaa6d06282 ASoC: kirkwood: fix struct clk pointer comparing
Since commit 035a61c314 ("clk: Make clk API return per-user struct clk
instances"), clk API users can no longer check if two struct clk
pointers are pointing to the same hardware clock, i.e. struct clk_hw, by
simply comparing two pointers.  That's because with the per-user clk
change, a brand new struct clk is created whenever clients try to look
up the clock by calling clk_get() or sister functions like clk_get_sys()
and of_clk_get().  This changes the original behavior where the struct
clk is only created for once when clock driver registers the clock to
CCF in the first place.  The net change here is before commit
035a61c314 the struct clk pointer is unique for given hardware
clock, while after the commit the pointers returned by clk lookup calls
become different for the same hardware clock.

That said, the struct clk pointer comparing in the code doesn't work any
more.  Call helper function clk_is_match() instead to fix the problem.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2015-03-11 16:00:41 -07:00
..
Kconfig ASoC: kirkwood: Remove ARCH_KIRKWOOD dependency 2014-07-29 20:35:23 +01:00
Makefile ASoC: kirkwood: Remove unused drivers 2014-07-29 20:34:37 +01:00
armada-370-db.c ASoC: kirkwood: drop owner assignment from platform_drivers 2014-10-20 16:22:10 +02:00
kirkwood-dma.c ASoC: kirkwood: implement NO_PERIOD_WAKEUP support 2014-06-28 13:18:46 +01:00
kirkwood-i2s.c ASoC: kirkwood: fix struct clk pointer comparing 2015-03-11 16:00:41 -07:00
kirkwood.h ASoC: kirkwood: allow smaller audio periods and smaller number of periods 2014-06-28 13:18:41 +01:00