Thread (11 messages) 11 messages, 2 authors, 2013-02-04
DORMANTno replies
Revisions (5)
  1. v1 [diff vs current]
  2. v2 [diff vs current]
  3. v2 [diff vs current]
  4. v2 current
  5. v3 [diff vs current]

[PATCH V2 3/7] ARM: OMAP2+: Remove hard-coded test on timer ID

From: Jon Hunter <hidden>
Date: 2013-02-04 18:01:59
Also in: linux-omap

On 02/04/2013 11:46 AM, Russell King - ARM Linux wrote:
On Mon, Feb 04, 2013 at 11:43:02AM -0600, Jon Hunter wrote:
quoted
@@ -280,22 +281,22 @@ static int __init omap_dm_timer_init_one(struct omap_dm_timer *timer,
 	if (IS_ERR(timer->fclk))
 		return -ENODEV;
 
-	/* FIXME: Need to remove hard-coded test on timer ID */
-	if (gptimer_id != 12) {
-		struct clk *src;
-
-		src = clk_get(NULL, fck_source);
-		if (IS_ERR(src)) {
-			r = -EINVAL;
-		} else {
-			r = clk_set_parent(timer->fclk, src);
-			if (IS_ERR_VALUE(r))
-				pr_warn("%s: %s cannot set source\n",
-					__func__, oh->name);
+	src = clk_get(NULL, fck_source);
+	if (IS_ERR(src))
+		return -EINVAL;
This should be:
		return PTR_ERR(src);

and should've been there previously...
Thanks for the catch. I will include this and resend.

Cheers
Jon
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help