diff options
author | Paul Walmsley <paul@pwsan.com> | 2010-12-22 04:01:20 +0100 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2010-12-22 04:01:20 +0100 |
commit | 6e01478ae8a4322c9a2b2d6efed50196265ed5f2 (patch) | |
tree | 599403c4442e99f8a63a0635e1712e4a564b50a2 /arch/arm/mach-omap2/powerdomain2xxx_3xxx.c | |
parent | OMAP4: powerdomain: Add pwrdm_clear_all_prev_pwrst (diff) | |
download | linux-6e01478ae8a4322c9a2b2d6efed50196265ed5f2.tar.xz linux-6e01478ae8a4322c9a2b2d6efed50196265ed5f2.zip |
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 @@ #include <linux/io.h> #include <linux/errno.h> #include <linux/delay.h> + #include <plat/prcm.h> -#include "prm.h" + #include "prm-regbits-34xx.h" #include "powerdomains.h" +#include "prm.h" +#include "prm-regbits-24xx.h" +#include "prm-regbits-34xx.h" + /* Common functions across OMAP2 and OMAP3 */ static int omap2_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) |