diff options
author | Mahesh Mahadevan <Mahesh.Mahadevan@freescale.com> | 2013-07-15 15:34:54 -0500 |
---|---|---|
committer | Eric Nelson <eric.nelson@boundarydevices.com> | 2013-07-17 14:02:54 -0700 |
commit | ab352edf6cc59e780204f18ff731ce768df1db55 (patch) | |
tree | 17221b35896e4d314339a1c701cf5d167838f8da | |
parent | e7f2972db12850573172a6369a2fbd920c5ece2f (diff) |
ENGR00271136 Fix build break when CONFIG_CLK_DEBUG is disabled
clk structure member name is defined only when CONFIG_CLK_DEBUG is enabled.
Hence need to encapsulate the code with this config.
Patch received from imx community:
https://community.freescale.com/thread/308482
Signed-off-by: xiongweihuang
Signed-off-by: Mahesh Mahadevan <Mahesh.Mahadevan@freescale.com>
-rw-r--r-- | arch/arm/plat-mxc/clock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/plat-mxc/clock.c b/arch/arm/plat-mxc/clock.c index 93347eb14c69..1aa266402f94 100644 --- a/arch/arm/plat-mxc/clock.c +++ b/arch/arm/plat-mxc/clock.c @@ -58,12 +58,12 @@ static void __clk_disable(struct clk *clk) { if (clk == NULL || IS_ERR(clk)) return; - +#ifdef CONFIG_CLK_DEBUG if (!clk->usecount) { WARN(1, "clock enable/disable mismatch! clk %s\n", clk->name); return; } - +#endif if (!(--clk->usecount)) { if (clk->disable) clk->disable(clk); |