Thread (13 messages) 13 messages, 4 authors, 2012-07-08
STALE5081d
Revisions (4)
  1. v3 [diff vs current]
  2. v3 [diff vs current]
  3. v3 current
  4. v3 [diff vs current]

[PATCH 4/5] ARM: OMAP3EVM: cosmetic fixes for parent clk set

From: Zumeng Chen <hidden>
Date: 2012-06-21 01:05:10
Also in: linux-omap

? 2012?06?21? 00:00, Jon Hunter ??:
On 06/20/2012 04:14 AM, Zumeng Chen wrote:
quoted
Since it's no more sense to set parent for dummy clock,
so we can just ignore it to mute failed message.

Signed-off-by: Jon Hunter<redacted>
Signed-off-by: Zumeng Chen<redacted>
---
  arch/arm/plat-omap/clock.c  |    4 ++++
  drivers/mfd/omap-usb-host.c |    2 +-
  2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/arch/arm/plat-omap/clock.c b/arch/arm/plat-omap/clock.c
index 62ec5c4..c7e26e4 100644
--- a/arch/arm/plat-omap/clock.c
+++ b/arch/arm/plat-omap/clock.c
@@ -149,6 +149,10 @@ int clk_set_parent(struct clk *clk, struct clk *parent)
  	if (!arch_clock || !arch_clock->clk_set_parent)
  		return ret;

+	/* If the clock is a dummy clock just return */
+	if (clk ==&dummy_ck)
+		return 0;
+
  	spin_lock_irqsave(&clockfw_lock, flags);
  	if (clk->usecount == 0) {
  		ret = arch_clock->clk_set_parent(clk, parent);
diff --git a/drivers/mfd/omap-usb-host.c b/drivers/mfd/omap-usb-host.c
index 7e96bb2..c9d27c4 100644
--- a/drivers/mfd/omap-usb-host.c
+++ b/drivers/mfd/omap-usb-host.c
@@ -699,7 +699,7 @@ static int __devinit usbhs_omap_probe(struct platform_device *pdev)
  	}

  	if (is_ehci_phy_mode(pdata->port_mode[0])) {
-		/* for OMAP3 , the clk set paretn fails */
+		/* for OMAP3 , the clk set parent fails */
Can't we remove this comment now with the above fix? It is no longer
relevant, right?
Yes, NP.

Regards,
Zumeng
Cheers
Jon
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help