diff options
author | Paul Walmsley <paul@pwsan.com> | 2009-12-08 18:29:38 -0500 |
---|---|---|
committer | paul <paul@twilight.(none)> | 2009-12-11 19:00:40 -0500 |
commit | 52650505fbf3a6ab851c801f54e73e76c55ab8da (patch) | |
tree | 07fc2b2eccb313fc7a0e3ade4a564f2df08fc33c /arch/arm/mach-omap1/io.c | |
parent | 6f62b58dd4e697a23a308f5b77781394949d333e (diff) |
OMAP1 clock: convert mach-omap1/clock.h to mach-omap1/clock_data.c
The OMAP1 clock code currently #includes a large .h file full of static
data structures. Instead, define the data in a .c file.
Russell King <linux@arm.linux.org.uk> proposed this new arrangement:
http://marc.info/?l=linux-omap&m=125967425908895&w=2
This patch also deals with most of the flagrant checkpatch violations.
While here, separate the mpu_rate data structures out into their own
files, opp.h and opp_data.c. In the long run, these mpu_rate tables
should be replaced with OPP code.
Also includes a patch from Felipe Balbi <felipe.balbi@nokia.com> to
mark omap1_clk_functions as __initdata to avoid a section warning:
http://patchwork.kernel.org/patch/64366/
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Felipe Balbi <felipe.balbi@nokia.com>
Cc: Nishanth Menon <nm@ti.com>
Diffstat (limited to 'arch/arm/mach-omap1/io.c')
-rw-r--r-- | arch/arm/mach-omap1/io.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-omap1/io.c b/arch/arm/mach-omap1/io.c index 2a6d68aa3489..d9b8d82530ae 100644 --- a/arch/arm/mach-omap1/io.c +++ b/arch/arm/mach-omap1/io.c | |||
@@ -18,7 +18,8 @@ | |||
18 | #include <plat/mux.h> | 18 | #include <plat/mux.h> |
19 | #include <plat/tc.h> | 19 | #include <plat/tc.h> |
20 | 20 | ||
21 | extern int omap1_clk_init(void); | 21 | #include "clock.h" |
22 | |||
22 | extern void omap_check_revision(void); | 23 | extern void omap_check_revision(void); |
23 | extern void omap_sram_init(void); | 24 | extern void omap_sram_init(void); |
24 | extern void omapfb_reserve_sdram(void); | 25 | extern void omapfb_reserve_sdram(void); |