Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44992
b: refs/heads/master
c: 9185cfa
h: refs/heads/master
v: v3
  • Loading branch information
Rafael J. Wysocki authored and Len Brown committed Nov 2, 2006
1 parent ae18399 commit bbe0d8c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8b0dc866dd9b8d10a53cb3537385a51b7ee54b62
refs/heads/master: 9185cfa92507d07ac787bc73d06c42222eec7239
8 changes: 5 additions & 3 deletions trunk/kernel/power/disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ static void power_down(suspend_disk_method_t mode)

switch(mode) {
case PM_DISK_PLATFORM:
kernel_shutdown_prepare(SYSTEM_SUSPEND_DISK);
error = pm_ops->enter(PM_SUSPEND_DISK);
break;
if (pm_ops && pm_ops->enter) {
kernel_shutdown_prepare(SYSTEM_SUSPEND_DISK);
error = pm_ops->enter(PM_SUSPEND_DISK);
break;
}
case PM_DISK_SHUTDOWN:
kernel_power_off();
break;
Expand Down
2 changes: 1 addition & 1 deletion trunk/kernel/power/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
DECLARE_MUTEX(pm_sem);

struct pm_ops *pm_ops;
suspend_disk_method_t pm_disk_mode = PM_DISK_SHUTDOWN;
suspend_disk_method_t pm_disk_mode = PM_DISK_PLATFORM;

/**
* pm_set_ops - Set the global power method table.
Expand Down

0 comments on commit bbe0d8c

Please sign in to comment.