OMAP1 clock: convert mach-omap1/clock.h to mach-omap1/clock_data.c
authorPaul Walmsley <paul@pwsan.com>
Tue, 8 Dec 2009 23:29:38 +0000 (16:29 -0700)
committerpaul <paul@twilight.(none)>
Sat, 12 Dec 2009 00:00:40 +0000 (17:00 -0700)
commit52650505fbf3a6ab851c801f54e73e76c55ab8da
tree07fc2b2eccb313fc7a0e3ade4a564f2df08fc33c
parent6f62b58dd4e697a23a308f5b77781394949d333e
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>
arch/arm/mach-omap1/Makefile
arch/arm/mach-omap1/clock.c
arch/arm/mach-omap1/clock.h
arch/arm/mach-omap1/clock_data.c [new file with mode: 0644]
arch/arm/mach-omap1/io.c
arch/arm/mach-omap1/opp.h [new file with mode: 0644]
arch/arm/mach-omap1/opp_data.c [new file with mode: 0644]
arch/arm/plat-omap/include/plat/clkdev_omap.h