]> git.karo-electronics.de Git - mv-sheeva.git/commit
OMAP2+ clock: clean up clkt_clksel.c
authorPaul Walmsley <paul@pwsan.com>
Wed, 19 May 2010 00:40:24 +0000 (18:40 -0600)
committerPaul Walmsley <paul@pwsan.com>
Thu, 20 May 2010 18:31:06 +0000 (12:31 -0600)
commit435699db6a3d81bfd36d25150177399a4f6048d5
treef6fa03a580c900178ea6b2b0c64e9272460d3cd3
parentd74b4949714741f4c58cd1801a6a92737b89a61c
OMAP2+ clock: clean up clkt_clksel.c

This patch cleans up arch/arm/mach-omap2/clkt_clksel.c.  It:

- makes several functions static that are not called outside the file;

- adds documentation;

- makes some code paths easier to read (hopefully), by breaking up
  compound statements and removing redundant checks;

- converts some pr_err()s that indicate clock tree data problems into WARN()s,
  so they are more likely to be noticed;

- and moves omap2_clk_round_rate() back into mach-omap2/clock.c, its proper
  home, since it is not clksel-specific.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/clkt_clksel.c
arch/arm/mach-omap2/clock.c
arch/arm/mach-omap2/clock.h