Skip to content

Commit

Permalink
PM: Split up sysdev_[suspend|resume] from device_power_[down|up], fix
Browse files Browse the repository at this point in the history
Impact: module build fix

Fix:

 ERROR: "sysdev_resume" [arch/x86/kernel/apm.ko] undefined!
 ERROR: "sysdev_suspend" [arch/x86/kernel/apm.ko] undefined!

As these APIs are now used by the APM driver, which can be built
as a module.

Also fix a few extra (and inconsistent) newlines in comment blocks
preceding these functions.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Ingo Molnar committed Feb 22, 2009
1 parent 770824b commit 0f99fed
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions drivers/base/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,6 @@ void sysdev_unregister(struct sys_device * sysdev)
* is guaranteed by virtue of the fact that child devices are registered
* after their parents.
*/

void sysdev_shutdown(void)
{
struct sysdev_class * cls;
Expand Down Expand Up @@ -363,7 +362,6 @@ static void __sysdev_resume(struct sys_device *dev)
* This is only called by the device PM core, so we let them handle
* all synchronization.
*/

int sysdev_suspend(pm_message_t state)
{
struct sysdev_class * cls;
Expand Down Expand Up @@ -432,7 +430,7 @@ int sysdev_suspend(pm_message_t state)
}
return ret;
}

EXPORT_SYMBOL_GPL(sysdev_suspend);

/**
* sysdev_resume - Bring system devices back to life.
Expand All @@ -442,7 +440,6 @@ int sysdev_suspend(pm_message_t state)
*
* Note: Interrupts are disabled when called.
*/

int sysdev_resume(void)
{
struct sysdev_class * cls;
Expand All @@ -463,7 +460,7 @@ int sysdev_resume(void)
}
return 0;
}

EXPORT_SYMBOL_GPL(sysdev_resume);

int __init system_bus_init(void)
{
Expand Down

0 comments on commit 0f99fed

Please sign in to comment.