]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
ARM: mach-shmobile: fix sh7372 after a recent clock framework rework
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Tue, 2 Nov 2010 11:28:33 +0000 (11:28 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 2 Nov 2010 15:52:37 +0000 (11:52 -0400)
The updated sh clock framework has introduced a .nr_freqs element of struct
clk, which has to be initialised with the number of possible frequencies.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/arm/mach-shmobile/clock-sh7372.c

index fe7fa1550d363960321ff180fdc6a3f1514cf9c3..7db31e6c6bf2085908cb66ce669238488c5aa444 100644 (file)
@@ -291,6 +291,7 @@ struct clk sh7372_pllc2_clk = {
        .ops            = &pllc2_clk_ops,
        .parent         = &extal1_div2_clk,
        .freq_table     = pllc2_freq_table,
+       .nr_freqs       = ARRAY_SIZE(pllc2_freq_table) - 1,
        .parent_table   = pllc2_parent,
        .parent_num     = ARRAY_SIZE(pllc2_parent),
 };