ARM: S3C64XX: Compress s3c6400-clock.c code
commit8360493c4ae4c116339cd1cf4da100c3547f23af
authorBen Dooks <ben-linux@fluff.org>
Mon, 30 Nov 2009 01:31:32 +0000 (30 01:31 +0000)
committerBen Dooks <ben-linux@fluff.org>
Fri, 15 Jan 2010 08:10:08 +0000 (15 17:10 +0900)
tree69a53f5ab7e360f7528905cb88bcf563d33bfcce
parentf9c4f1e4ddf40103dcf85e23d00230ab8ece2a89
ARM: S3C64XX: Compress s3c6400-clock.c code

The individually named clocks are all static to the code
and thus can be compressed into a single array and then
the array can be referenced. This removes the need for
a seperate array of pointers to clocks.

Fix a minor problem of re-initialising the pointers in
s3c6400_set_clksrc() as this is also called by the cpufreq
code. Move these initialisations to the code that does the
registration.

Based on Harald Welte's original clock changes patch.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/plat-s3c64xx/s3c6400-clock.c