diff mbox

[01/13] sh: Skip uninitialized hwblk clocks

Message ID 20100510112326.14587.52488.sendpatchset@t400s (mailing list archive)
State RFC
Headers show

Commit Message

Magnus Damm May 10, 2010, 11:23 a.m. UTC
None
diff mbox

Patch

--- 0001/arch/sh/kernel/cpu/hwblk.c
+++ work/arch/sh/kernel/cpu/hwblk.c	2010-05-10 18:28:11.000000000 +0900
@@ -146,6 +146,11 @@  int __init sh_hwblk_clk_register(struct 
 
 	for (k = 0; !ret && (k < nr); k++) {
 		clkp = clks + k;
+
+		/* skip over clocks using hwblk 0 (HWBLK_UNKNOWN) */
+		if (!clkp->arch_flags)
+			continue;
+
 		clkp->ops = &sh_hwblk_clk_ops;
 		ret |= clk_register(clkp);
 	}