diff options
author | Paul Walmsley <paul@pwsan.com> | 2010-12-21 22:01:20 -0500 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2010-12-21 22:01:20 -0500 |
commit | 6e01478ae8a4322c9a2b2d6efed50196265ed5f2 (patch) | |
tree | 599403c4442e99f8a63a0635e1712e4a564b50a2 /arch/arm/mach-omap2/powerdomain2xxx_3xxx.c | |
parent | 4b4f62c4672805466652a785070cc2ac8a398e16 (diff) |
OMAP2+: powerdomains: move powerdomain 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 powerdomain data.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Rajendra Nayak <rnayak@ti.com>
Cc: Santosh Shilimkar <santosh.shilimkar@ti.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/powerdomain2xxx_3xxx.c')
-rw-r--r-- | arch/arm/mach-omap2/powerdomain2xxx_3xxx.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/powerdomain2xxx_3xxx.c b/arch/arm/mach-omap2/powerdomain2xxx_3xxx.c index 6cdf67860cb3..838ac758c513 100644 --- a/arch/arm/mach-omap2/powerdomain2xxx_3xxx.c +++ b/arch/arm/mach-omap2/powerdomain2xxx_3xxx.c | |||
@@ -15,10 +15,15 @@ | |||
15 | #include <linux/io.h> | 15 | #include <linux/io.h> |
16 | #include <linux/errno.h> | 16 | #include <linux/errno.h> |
17 | #include <linux/delay.h> | 17 | #include <linux/delay.h> |
18 | |||
18 | #include <plat/prcm.h> | 19 | #include <plat/prcm.h> |
19 | #include "prm.h" | 20 | |
20 | #include "prm-regbits-34xx.h" | 21 | #include "prm-regbits-34xx.h" |
21 | #include "powerdomains.h" | 22 | #include "powerdomains.h" |
23 | #include "prm.h" | ||
24 | #include "prm-regbits-24xx.h" | ||
25 | #include "prm-regbits-34xx.h" | ||
26 | |||
22 | 27 | ||
23 | /* Common functions across OMAP2 and OMAP3 */ | 28 | /* Common functions across OMAP2 and OMAP3 */ |
24 | static int omap2_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) | 29 | static int omap2_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) |