ARM: S3C64XX: Compress s3c6400-clock.c code

Previous thread: ARM: S5PC1XX: Use common UART IRQ handling code by Linux Kernel Mailing List on Friday, March 12, 2010 - 6:01 pm. (1 message)

Next thread: ARM: SAMSUNG: Move gpio-config.c into plat-samsung by Linux Kernel Mailing List on Friday, March 12, 2010 - 6:01 pm. (1 message)
From: Linux Kernel Mailing List
Date: Friday, March 12, 2010 - 6:01 pm

Gitweb:     http://git.kernel.org/linus/8360493c4ae4c116339cd1cf4da100c3547f23af
Commit:     8360493c4ae4c116339cd1cf4da100c3547f23af
Parent:     f9c4f1e4ddf40103dcf85e23d00230ab8ece2a89
Author:     Ben Dooks <ben-linux@fluff.org>
AuthorDate: Mon Nov 30 01:31:32 2009 +0000
Committer:  Ben Dooks <ben-linux@fluff.org>
CommitDate: Fri Jan 15 17:10:08 2010 +0900

    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 |  334 +++++++++++++++------------------
 1 files changed, 154 insertions(+), 180 deletions(-)

diff --git a/arch/arm/plat-s3c64xx/s3c6400-clock.c b/arch/arm/plat-s3c64xx/s3c6400-clock.c
index aba08c7..6fde910 100644
--- a/arch/arm/plat-s3c64xx/s3c6400-clock.c
+++ b/arch/arm/plat-s3c64xx/s3c6400-clock.c
@@ -255,7 +255,6 @@ static struct clk_sources clkset_uhost = {
 	.nr_sources	= ARRAY_SIZE(clkset_uhost_list),
 };
 
-
 /* The peripheral clocks are all controlled via clocksource followed
  * by an optional divider and gate stage. We currently roll this into
  * one clock which hides the intermediate clock from the mux.
@@ -354,105 +353,7 @@ static unsigned long s3c64xx_roundrate_clksrc(struct clk *clk,
 	return rate;
 }
 
-static struct clksrc_clk clk_mmc0 = {
-	.clk	= {
-		.name		= "mmc_bus",
-		.id		= 0,
-		.ctrlbit        = S3C_CLKCON_SCLK_MMC0,
-		.enable		= s3c64xx_sclk_ctrl,
-	},
-	.shift		= S3C6400_CLKSRC_MMC0_SHIFT,
-	.mask		= ...
Previous thread: ARM: S5PC1XX: Use common UART IRQ handling code by Linux Kernel Mailing List on Friday, March 12, 2010 - 6:01 pm. (1 message)

Next thread: ARM: SAMSUNG: Move gpio-config.c into plat-samsung by Linux Kernel Mailing List on Friday, March 12, 2010 - 6:01 pm. (1 message)