From 54eecdabe0cdfdc47d77b3e182fda5899702ded7 Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Thu, 16 Oct 2014 02:06:17 +0200 Subject: initial commit for Enea Linux 4.0-140929 Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea --- ...6-Fix-build-break-when-CONFIG_CLK_DEBUG-i.patch | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 recipes-kernel/linux/linux-congatec-3.0.35/0004-ENGR00271136-Fix-build-break-when-CONFIG_CLK_DEBUG-i.patch (limited to 'recipes-kernel/linux/linux-congatec-3.0.35/0004-ENGR00271136-Fix-build-break-when-CONFIG_CLK_DEBUG-i.patch') diff --git a/recipes-kernel/linux/linux-congatec-3.0.35/0004-ENGR00271136-Fix-build-break-when-CONFIG_CLK_DEBUG-i.patch b/recipes-kernel/linux/linux-congatec-3.0.35/0004-ENGR00271136-Fix-build-break-when-CONFIG_CLK_DEBUG-i.patch new file mode 100644 index 0000000..7316351 --- /dev/null +++ b/recipes-kernel/linux/linux-congatec-3.0.35/0004-ENGR00271136-Fix-build-break-when-CONFIG_CLK_DEBUG-i.patch @@ -0,0 +1,43 @@ +From d8601292ae25e0af47aa4486055221ab44113f0e Mon Sep 17 00:00:00 2001 +From: Mahesh Mahadevan +Date: Mon, 15 Jul 2013 15:34:54 -0500 +Subject: [PATCH] ENGR00271136 Fix build break when CONFIG_CLK_DEBUG is + disabled +Organization: O.S. Systems Software LTDA. + +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 + +Upstream-Status: Pending + +Signed-off-by: xiongweihuang +Signed-off-by: Mahesh Mahadevan +--- + arch/arm/plat-mxc/clock.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/arch/arm/plat-mxc/clock.c b/arch/arm/plat-mxc/clock.c +index 93347eb..1aa2664 100755 +--- 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); +-- +1.8.4.rc3 + -- cgit v1.2.3-54-g00ecf