1 From d8601292ae25e0af47aa4486055221ab44113f0e Mon Sep 17 00:00:00 2001
2 From: Mahesh Mahadevan <Mahesh.Mahadevan@freescale.com>
3 Date: Mon, 15 Jul 2013 15:34:54 -0500
4 Subject: [PATCH] ENGR00271136 Fix build break when CONFIG_CLK_DEBUG is
6 Organization: O.S. Systems Software LTDA.
8 clk structure member name is defined only when CONFIG_CLK_DEBUG is enabled.
9 Hence need to encapsulate the code with this config.
11 Patch received from imx community:
12 https://community.freescale.com/thread/308482
14 Upstream-Status: Pending
16 Signed-off-by: xiongweihuang
17 Signed-off-by: Mahesh Mahadevan <Mahesh.Mahadevan@freescale.com>
19 arch/arm/plat-mxc/clock.c | 4 ++--
20 1 file changed, 2 insertions(+), 2 deletions(-)
22 diff --git a/arch/arm/plat-mxc/clock.c b/arch/arm/plat-mxc/clock.c
23 index 93347eb..1aa2664 100755
24 --- a/arch/arm/plat-mxc/clock.c
25 +++ b/arch/arm/plat-mxc/clock.c
26 @@ -58,12 +58,12 @@ static void __clk_disable(struct clk *clk)
28 if (clk == NULL || IS_ERR(clk))
31 +#ifdef CONFIG_CLK_DEBUG
33 WARN(1, "clock enable/disable mismatch! clk %s\n", clk->name);
38 if (!(--clk->usecount)) {