diff options
author | Paul Walmsley <paul@pwsan.com> | 2011-09-15 00:01:21 +0200 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2011-09-15 01:20:44 +0200 |
commit | 129c65ee66a97fbf663f2f5fce26aacdc7348736 (patch) | |
tree | 50c732a7a31d8443212d95a428515952c839592f /arch/arm/mach-omap2/powerdomains2xxx_data.c | |
parent | OMAP: clockdomain code/data: remove omap_chip bitmask from struct clockdomain (diff) | |
download | linux-129c65ee66a97fbf663f2f5fce26aacdc7348736.tar.xz linux-129c65ee66a97fbf663f2f5fce26aacdc7348736.zip |
OMAP: powerdomain: split pwrdm_init() into two functions
In preparation for OMAP_CHIP() removal, split pwrdm_init() into three
functions. This allows some of them to be called multiple times: for
example, pwrdm_register_pwrdms() can be called once to register
powerdomains that are common to a group of SoCs, and once to register
powerdomains that are specific to a single SoC.
The appropriate order to call these functions - which is enforced
by the code - is:
1. pwrdm_register_platform_funcs()
2. pwrdm_register_pwrdms() (can be called multiple times)
3. pwrdm_complete_init()
Convert the OMAP2, 3, and 4 powerdomain init code to use these new
functions.
While here, improve documentation, and increase CodingStyle
conformance by shortening some local variable names.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/powerdomains2xxx_data.c')
-rw-r--r-- | arch/arm/mach-omap2/powerdomains2xxx_data.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/powerdomains2xxx_data.c b/arch/arm/mach-omap2/powerdomains2xxx_data.c index cc389fb2005d..71c4fd7a6c2f 100644 --- a/arch/arm/mach-omap2/powerdomains2xxx_data.c +++ b/arch/arm/mach-omap2/powerdomains2xxx_data.c @@ -119,5 +119,7 @@ static struct powerdomain *powerdomains_omap2xxx[] __initdata = { void __init omap2xxx_powerdomains_init(void) { - pwrdm_init(powerdomains_omap2xxx, &omap2_pwrdm_operations); + pwrdm_register_platform_funcs(&omap2_pwrdm_operations); + pwrdm_register_pwrdms(powerdomains_omap2xxx); + pwrdm_complete_init(); } |