Skip to content

Commit

Permalink
OMAP4: PM: remove redundant #ifdef CONFIG_PM
Browse files Browse the repository at this point in the history
pm44xx.c is built only when CONFIG_PM is setup,
remove redundant CONFIG_PM check.

This also fixes:
https://bugzilla.kernel.org/show_bug.cgi?id=25022

Reported-by: Martin Etti <ettl.martin@gmx.de>

Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
  • Loading branch information
Nishanth Menon authored and Tony Lindgren committed May 3, 2011
1 parent 283a1c1 commit 3454900
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions arch/arm/mach-omap2/pm44xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,11 @@ static int __init omap4_pm_init(void)

pr_err("Power Management for TI OMAP4.\n");

#ifdef CONFIG_PM
ret = pwrdm_for_each(pwrdms_setup, NULL);
if (ret) {
pr_err("Failed to setup powerdomains\n");
goto err2;
}
#endif

#ifdef CONFIG_SUSPEND
suspend_set_ops(&omap_pm_ops);
Expand Down

0 comments on commit 3454900

Please sign in to comment.