Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some drivers compare struct clk pointers as a means of knowing if the two pointers reference the same clock hardware. This behavior is dubious (drivers must not dereference struct clk), but did not cause any regressions until the per-user struct clk patch was merged. Now the test for matching clk's will always fail with per-user struct clk's. clk_is_match is introduced to fix the regression and prevent drivers from comparing the pointers manually. Fixes: 035a61c ("clk: Make clk API return per-user struct clk instances") Cc: Russell King <[email protected]> Cc: Shawn Guo <[email protected]> Cc: Tomeu Vizoso <[email protected]> Signed-off-by: Michael Turquette <[email protected]> [[email protected]: Fix COMMON_CLK=N && HAS_CLK=Y config] Signed-off-by: Arnd Bergmann <[email protected]> [[email protected]: const arguments to clk_is_match() and remove unnecessary ternary operation] Signed-off-by: Stephen Boyd <[email protected]>
- Loading branch information