mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ARM: imx: replace width with mask for clk_busy_mux
@ 2013-03-26 19:38 Mike Turquette
  2013-03-26 19:48 ` Fabio Estevam
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Turquette @ 2013-03-26 19:38 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-arm-kernel, Mike Turquette, Shawn Guo, Peter De Schrijver

The recent addition of table-based parent lookups[1] in the common
clk_mux implementation removed the width member of struct clk_mux and
replaced it with an arbitrary mask.  This broke compilation for i.MX
platforms using clk_busy_mux which builds upon the common clk_mux.

Fixed by populating the mask member during clk_busy_mux registration
instead of the now non-existent width member.

[1] http://article.gmane.org/gmane.linux.ports.tegra/10028

Cc: Shawn Guo <shawn.guo@linaro.org>
Cc: Peter De Schrijver <pdeschrijver@nvidia.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
---
 arch/arm/mach-imx/clk-busy.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-imx/clk-busy.c b/arch/arm/mach-imx/clk-busy.c
index 1ab91b5..85b728c 100644
--- a/arch/arm/mach-imx/clk-busy.c
+++ b/arch/arm/mach-imx/clk-busy.c
@@ -169,7 +169,7 @@ struct clk *imx_clk_busy_mux(const char *name, void __iomem *reg, u8 shift,
 
 	busy->mux.reg = reg;
 	busy->mux.shift = shift;
-	busy->mux.width = width;
+	busy->mux.mask = BIT(width) - 1;
 	busy->mux.lock = &imx_ccm_lock;
 	busy->mux_ops = &clk_mux_ops;
 
-- 
1.7.10.4


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-26 19:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-26 19:38 [PATCH] ARM: imx: replace width with mask for clk_busy_mux Mike Turquette
2013-03-26 19:48 ` Fabio Estevam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®