diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-19 14:36:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-19 14:36:03 -0400 |
commit | 7c7cbaf5b82c418cd3b1dcf718f71d0e6057e639 (patch) | |
tree | da9aaa5a246af464b1e10d88618c1cad07b76314 /arch/sh/boards/mach-se/7724/setup.c | |
parent | ba0234ec35127fe21d373db53cbaf9fe20620cb6 (diff) | |
parent | 4d0956b8f597aac10208ca763f8fe641fde16aab (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6: (127 commits)
sh: update defconfigs.
sh: Fix up the NUMA build for recent LMB changes.
sh64: provide a stub per_cpu_trap_init() definition.
sh: fix up CONFIG_KEXEC=n build.
sh: fixup the docbook paths for clock framework shuffling.
driver core: Early dev_name() depends on slab_is_available().
sh: simplify WARN usage in SH clock driver
sh: Check return value of clk_get on ms7724
sh: Check return value of clk_get on ecovec24
sh: move sh clock-cpg.c contents to drivers/sh/clk-cpg.c
sh: move sh clock.c contents to drivers/sh/clk.
sh: move sh asm/clock.h contents to linux/sh_clk.h V2
sh: remove unused clock lookup
sh: switch boards to clkdev
sh: switch sh4-202 to clkdev
sh: switch shx3 to clkdev
sh: switch sh7757 to clkdev
sh: switch sh7763 to clkdev
sh: switch sh7780 to clkdev
sh: switch sh7786 to clkdev
...
Diffstat (limited to 'arch/sh/boards/mach-se/7724/setup.c')
-rw-r--r-- | arch/sh/boards/mach-se/7724/setup.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/arch/sh/boards/mach-se/7724/setup.c b/arch/sh/boards/mach-se/7724/setup.c index ccaa290e9aba..e74ae7b0d8bf 100644 --- a/arch/sh/boards/mach-se/7724/setup.c +++ b/arch/sh/boards/mach-se/7724/setup.c | |||
@@ -276,8 +276,6 @@ static struct clk_ops fsimck_clk_ops = { | |||
276 | }; | 276 | }; |
277 | 277 | ||
278 | static struct clk fsimcka_clk = { | 278 | static struct clk fsimcka_clk = { |
279 | .name = "fsimcka_clk", | ||
280 | .id = -1, | ||
281 | .ops = &fsimck_clk_ops, | 279 | .ops = &fsimck_clk_ops, |
282 | .enable_reg = (void __iomem *)FCLKACR, | 280 | .enable_reg = (void __iomem *)FCLKACR, |
283 | .rate = 0, /* unknown */ | 281 | .rate = 0, /* unknown */ |
@@ -771,16 +769,20 @@ static int __init devices_setup(void) | |||
771 | 769 | ||
772 | /* set SPU2 clock to 83.4 MHz */ | 770 | /* set SPU2 clock to 83.4 MHz */ |
773 | clk = clk_get(NULL, "spu_clk"); | 771 | clk = clk_get(NULL, "spu_clk"); |
774 | clk_set_rate(clk, clk_round_rate(clk, 83333333)); | 772 | if (clk) { |
775 | clk_put(clk); | 773 | clk_set_rate(clk, clk_round_rate(clk, 83333333)); |
774 | clk_put(clk); | ||
775 | } | ||
776 | 776 | ||
777 | /* change parent of FSI A */ | 777 | /* change parent of FSI A */ |
778 | clk = clk_get(NULL, "fsia_clk"); | 778 | clk = clk_get(NULL, "fsia_clk"); |
779 | clk_register(&fsimcka_clk); | 779 | if (clk) { |
780 | clk_set_parent(clk, &fsimcka_clk); | 780 | clk_register(&fsimcka_clk); |
781 | clk_set_rate(clk, 11000); | 781 | clk_set_parent(clk, &fsimcka_clk); |
782 | clk_set_rate(&fsimcka_clk, 11000); | 782 | clk_set_rate(clk, 11000); |
783 | clk_put(clk); | 783 | clk_set_rate(&fsimcka_clk, 11000); |
784 | clk_put(clk); | ||
785 | } | ||
784 | 786 | ||
785 | /* SDHI0 connected to cn7 */ | 787 | /* SDHI0 connected to cn7 */ |
786 | gpio_request(GPIO_FN_SDHI0CD, NULL); | 788 | gpio_request(GPIO_FN_SDHI0CD, NULL); |