diff options
Diffstat (limited to 'recipes/linux/linux-omap-pm-2.6.28/0014-DSS-fix-clk_get_usecount.patch')
-rw-r--r-- | recipes/linux/linux-omap-pm-2.6.28/0014-DSS-fix-clk_get_usecount.patch | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/recipes/linux/linux-omap-pm-2.6.28/0014-DSS-fix-clk_get_usecount.patch b/recipes/linux/linux-omap-pm-2.6.28/0014-DSS-fix-clk_get_usecount.patch new file mode 100644 index 0000000000..a935709a9e --- /dev/null +++ b/recipes/linux/linux-omap-pm-2.6.28/0014-DSS-fix-clk_get_usecount.patch @@ -0,0 +1,67 @@ +From ba234fff55f8a1ef96b57ce2e18ab90df76f2c82 Mon Sep 17 00:00:00 2001 +From: Tomi Valkeinen <tomi.valkeinen@nokia.com> +Date: Thu, 8 Jan 2009 12:01:39 +0200 +Subject: [PATCH] DSS: fix clk_get_usecount + +--- + arch/arm/plat-omap/dss/dss.c | 12 ++++++------ + 1 files changed, 6 insertions(+), 6 deletions(-) + +diff --git a/arch/arm/plat-omap/dss/dss.c b/arch/arm/plat-omap/dss/dss.c +index 4a403c1..b9f35d8 100644 +--- a/arch/arm/plat-omap/dss/dss.c ++++ b/arch/arm/plat-omap/dss/dss.c +@@ -236,7 +236,7 @@ ssize_t dss_print_clocks(char *buf, ssize_t size) + l += snprintf(buf + l, size - l, "%-15s\t%lu\t%d\n", + clocks[i]->name, + clk_get_rate(clocks[i]), +- clk_get_usecount(clocks[i])); ++ clocks[i]->usecount); + } + + return l; +@@ -590,28 +590,28 @@ void dss_exit(void) + free_irq(INT_24XX_DSS_IRQ, NULL); + + /* these should be removed at some point */ +- c = clk_get_usecount(dss.dss_ick); ++ c = dss.dss_ick->usecount; + if (c > 0) { + DSSERR("warning: dss_ick usecount %d, disabling\n", c); + while (c-- > 0) + clk_disable(dss.dss_ick); + } + +- c = clk_get_usecount(dss.dss1_fck); ++ c = dss.dss1_fck->usecount; + if (c > 0) { + DSSERR("warning: dss1_fck usecount %d, disabling\n", c); + while (c-- > 0) + clk_disable(dss.dss1_fck); + } + +- c = clk_get_usecount(dss.dss2_fck); ++ c = dss.dss2_fck->usecount; + if (c > 0) { + DSSERR("warning: dss2_fck usecount %d, disabling\n", c); + while (c-- > 0) + clk_disable(dss.dss2_fck); + } + +- c = clk_get_usecount(dss.dss_54m_fck); ++ c = dss.dss_54m_fck->usecount; + if (c > 0) { + DSSERR("warning: dss_54m_fck usecount %d, disabling\n", c); + while (c-- > 0) +@@ -619,7 +619,7 @@ void dss_exit(void) + } + + if (dss.dss_96m_fck) { +- c = clk_get_usecount(dss.dss_96m_fck); ++ c = dss.dss_96m_fck->usecount; + if (c > 0) { + DSSERR("warning: dss_96m_fck usecount %d, disabling\n", + c); +-- +1.5.6.3 + |