Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: sunxi: Fixup clk_sunxi_mmc_phase_control to take a clk rather then a hw_clk

__clk_get_hw is supposed to be used by clk providers, not clk consumers.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>

authored by

Hans de Goede and committed by
Mike Turquette
a97181ad 8a5f93fa

+3 -2
+2 -1
drivers/clk/sunxi/clk-sunxi.c
··· 510 510 * clk_sunxi_mmc_phase_control() - configures MMC clock phase control 511 511 */ 512 512 513 - void clk_sunxi_mmc_phase_control(struct clk_hw *hw, u8 sample, u8 output) 513 + void clk_sunxi_mmc_phase_control(struct clk *clk, u8 sample, u8 output) 514 514 { 515 515 #define to_clk_composite(_hw) container_of(_hw, struct clk_composite, hw) 516 516 #define to_clk_factors(_hw) container_of(_hw, struct clk_factors, hw) 517 517 518 + struct clk_hw *hw = __clk_get_hw(clk); 518 519 struct clk_composite *composite = to_clk_composite(hw); 519 520 struct clk_hw *rate_hw = composite->rate_hw; 520 521 struct clk_factors *factors = to_clk_factors(rate_hw);
+1 -1
include/linux/clk/sunxi.h
··· 17 17 18 18 #include <linux/clk.h> 19 19 20 - void clk_sunxi_mmc_phase_control(struct clk_hw *hw, u8 sample, u8 output); 20 + void clk_sunxi_mmc_phase_control(struct clk *clk, u8 sample, u8 output); 21 21 22 22 #endif