diff options
author | Magnus Damm <damm@opensource.se> | 2010-05-10 14:01:02 +0000 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-05-11 11:48:31 +0900 |
commit | f3d51e13fea901729fef15bf1c32ca004d45476e (patch) | |
tree | 205a278e6e3d19ee7b57d39f30d4e50c2aaf6eaf /arch/sh/kernel/cpu/hwblk.c | |
parent | 9b7a37853a8cd69829eb1d9715a6c09aae01eeec (diff) |
sh: hwblk index rework
Rework the sh7722/sh7723/sh7724 hwblk code to use the
hwblk id as index in the mstp clock array.
Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/cpu/hwblk.c')
-rw-r--r-- | arch/sh/kernel/cpu/hwblk.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/sh/kernel/cpu/hwblk.c b/arch/sh/kernel/cpu/hwblk.c index 67a1e811cfe8..3e985aae5d91 100644 --- a/arch/sh/kernel/cpu/hwblk.c +++ b/arch/sh/kernel/cpu/hwblk.c @@ -146,6 +146,11 @@ int __init sh_hwblk_clk_register(struct clk *clks, int nr) 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); } |