* [PATCH 01/13] sh: Skip uninitialized hwblk clocks
@ 2010-05-10 11:23 Magnus Damm
0 siblings, 0 replies; only message in thread
From: Magnus Damm @ 2010-05-10 11:23 UTC (permalink / raw)
To: linux-sh
From: Magnus Damm <damm@opensource.se>
Update the common hwblk clk code to skip over uninitialized
clocks. Useful when registering clocks in an [HWBLK_NR] array.
Signed-off-by: Magnus Damm <damm@opensource.se>
---
arch/sh/kernel/cpu/hwblk.c | 5 +++++
1 file changed, 5 insertions(+)
--- 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);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-05-10 11:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-10 11:23 [PATCH 01/13] sh: Skip uninitialized hwblk clocks Magnus Damm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox