mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 18:53:52 +08:00
ARM: OMAP: remove some dead code
A check for CONFIG_CBUS_TAHVO_USB was added in v2.6.17. The related Kconfig symbol has never been part of the tree. Remove that check. Replace the while (...) loop with a simple if (...) statement, while we're at it. Signed-off-by: Paul Bolle <pebolle@tiscali.nl> Acked-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:
parent
d8c270a874
commit
7d684ff8a9
@ -123,19 +123,8 @@ void omap1_pm_idle(void)
|
|||||||
#warning Enable 32kHz OS timer in order to allow sleep states in idle
|
#warning Enable 32kHz OS timer in order to allow sleep states in idle
|
||||||
use_idlect1 = use_idlect1 & ~(1 << 9);
|
use_idlect1 = use_idlect1 & ~(1 << 9);
|
||||||
#else
|
#else
|
||||||
|
if (enable_dyn_sleep)
|
||||||
while (enable_dyn_sleep) {
|
|
||||||
|
|
||||||
#ifdef CONFIG_CBUS_TAHVO_USB
|
|
||||||
extern int vbus_active;
|
|
||||||
/* Clock requirements? */
|
|
||||||
if (vbus_active)
|
|
||||||
break;
|
|
||||||
#endif
|
|
||||||
do_sleep = 1;
|
do_sleep = 1;
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_OMAP_DM_TIMER
|
#ifdef CONFIG_OMAP_DM_TIMER
|
||||||
|
Loading…
Reference in New Issue
Block a user