summaryrefslogtreecommitdiff
path: root/recipes/linux/linux-omap-pm-2.6.28/0014-DSS-fix-clk_get_usecount.patch
blob: a935709a9e8c0d5958b7c0b8527d8e3acf4fe625 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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