|
@@ -492,7 +492,7 @@ static struct clk clk_prediv = {
|
|
|
|
|
|
/* standard clock definitions */
|
|
|
|
|
|
-static struct clk init_clocks_disable[] = {
|
|
|
+static struct clk init_clocks_off[] = {
|
|
|
{
|
|
|
.name = "nand",
|
|
|
.id = -1,
|
|
@@ -761,9 +761,7 @@ void __init_or_cpufreq s3c2443_setup_clocks(void)
|
|
|
|
|
|
void __init s3c2443_init_clocks(int xtal)
|
|
|
{
|
|
|
- struct clk *clkp;
|
|
|
unsigned long epllcon = __raw_readl(S3C2443_EPLLCON);
|
|
|
- int ret;
|
|
|
int ptr;
|
|
|
|
|
|
/* s3c2443 parents h and p clocks from prediv */
|
|
@@ -774,15 +772,7 @@ void __init s3c2443_init_clocks(int xtal)
|
|
|
s3c2443_setup_clocks();
|
|
|
s3c2443_clk_initparents();
|
|
|
|
|
|
- for (ptr = 0; ptr < ARRAY_SIZE(clks); ptr++) {
|
|
|
- clkp = clks[ptr];
|
|
|
-
|
|
|
- ret = s3c24xx_register_clock(clkp);
|
|
|
- if (ret < 0) {
|
|
|
- printk(KERN_ERR "Failed to register clock %s (%d)\n",
|
|
|
- clkp->name, ret);
|
|
|
- }
|
|
|
- }
|
|
|
+ s3c24xx_register_clocks(clks, ARRAY_SIZE(clks));
|
|
|
|
|
|
for (ptr = 0; ptr < ARRAY_SIZE(clksrcs); ptr++)
|
|
|
s3c_register_clksrc(clksrcs[ptr], 1);
|
|
@@ -819,17 +809,8 @@ void __init s3c2443_init_clocks(int xtal)
|
|
|
|
|
|
/* install (and disable) the clocks we do not need immediately */
|
|
|
|
|
|
- clkp = init_clocks_disable;
|
|
|
- for (ptr = 0; ptr < ARRAY_SIZE(init_clocks_disable); ptr++, clkp++) {
|
|
|
-
|
|
|
- ret = s3c24xx_register_clock(clkp);
|
|
|
- if (ret < 0) {
|
|
|
- printk(KERN_ERR "Failed to register clock %s (%d)\n",
|
|
|
- clkp->name, ret);
|
|
|
- }
|
|
|
-
|
|
|
- (clkp->enable)(clkp, 0);
|
|
|
- }
|
|
|
+ s3c_register_clocks(init_clocks_off, ARRAY_SIZE(init_clocks_off));
|
|
|
+ s3c_disable_clocks(init_clocks_off, ARRAY_SIZE(init_clocks_off));
|
|
|
|
|
|
s3c_pwmclk_init();
|
|
|
}
|