aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/io.c
diff options
context:
space:
mode:
authorPaul Walmsley <paul@pwsan.com>2010-12-21 22:01:20 -0500
committerPaul Walmsley <paul@pwsan.com>2010-12-21 22:01:20 -0500
commitdc0b3a701499bb7727314d7a9c764f7486db4802 (patch)
treed2daec5610919039b98909d1983e479df4bf1842 /arch/arm/mach-omap2/io.c
parent6e01478ae8a4322c9a2b2d6efed50196265ed5f2 (diff)
OMAP2+: clockdomains: move clockdomain static data to .c files
Static data should be declared in .c files, not .h files. It should be possible to #include .h files at any point without creating multiple copies of the same data. We converted the clock data to .c files some time ago. This patch does the same for the clockdomain data. Signed-off-by: Paul Walmsley <paul@pwsan.com> Reviewed-by: Kevin Hilman <khilman@deeprootsystems.com> Tested-by: Kevin Hilman <khilman@deeprootsystems.com> Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Tested-by: Rajendra Nayak <rnayak@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/io.c')
-rw-r--r--arch/arm/mach-omap2/io.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c
index 40a548b203e3..ba766576e03e 100644
--- a/arch/arm/mach-omap2/io.c
+++ b/arch/arm/mach-omap2/io.c
@@ -42,8 +42,6 @@
42#include <plat/powerdomain.h> 42#include <plat/powerdomain.h>
43 43
44#include <plat/clockdomain.h> 44#include <plat/clockdomain.h>
45#include "clockdomains.h"
46
47#include <plat/omap_hwmod.h> 45#include <plat/omap_hwmod.h>
48#include <plat/multi.h> 46#include <plat/multi.h>
49 47
@@ -341,19 +339,19 @@ void __init omap2_init_common_infrastructure(void)
341 339
342 if (cpu_is_omap242x()) { 340 if (cpu_is_omap242x()) {
343 omap2xxx_powerdomains_init(); 341 omap2xxx_powerdomains_init();
344 clkdm_init(clockdomains_omap, clkdm_autodeps); 342 omap2_clockdomains_init();
345 omap2420_hwmod_init(); 343 omap2420_hwmod_init();
346 } else if (cpu_is_omap243x()) { 344 } else if (cpu_is_omap243x()) {
347 omap2xxx_powerdomains_init(); 345 omap2xxx_powerdomains_init();
348 clkdm_init(clockdomains_omap, clkdm_autodeps); 346 omap2_clockdomains_init();
349 omap2430_hwmod_init(); 347 omap2430_hwmod_init();
350 } else if (cpu_is_omap34xx()) { 348 } else if (cpu_is_omap34xx()) {
351 omap3xxx_powerdomains_init(); 349 omap3xxx_powerdomains_init();
352 clkdm_init(clockdomains_omap, clkdm_autodeps); 350 omap2_clockdomains_init();
353 omap3xxx_hwmod_init(); 351 omap3xxx_hwmod_init();
354 } else if (cpu_is_omap44xx()) { 352 } else if (cpu_is_omap44xx()) {
355 omap44xx_powerdomains_init(); 353 omap44xx_powerdomains_init();
356 clkdm_init(clockdomains_omap, clkdm_autodeps); 354 omap44xx_clockdomains_init();
357 omap44xx_hwmod_init(); 355 omap44xx_hwmod_init();
358 } else { 356 } else {
359 pr_err("Could not init hwmod data - unknown SoC\n"); 357 pr_err("Could not init hwmod data - unknown SoC\n");