diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/kmod.c | 8 | ||||
-rw-r--r-- | kernel/power/disk.c | 1 | ||||
-rw-r--r-- | kernel/sys.c | 3 |
3 files changed, 8 insertions, 4 deletions
diff --git a/kernel/kmod.c b/kernel/kmod.c index beedbdc64608..9809cc1f33d6 100644 --- a/kernel/kmod.c +++ b/kernel/kmod.c | |||
@@ -351,11 +351,11 @@ static inline void register_pm_notifier_callback(void) {} | |||
351 | 351 | ||
352 | /** | 352 | /** |
353 | * call_usermodehelper_setup - prepare to call a usermode helper | 353 | * call_usermodehelper_setup - prepare to call a usermode helper |
354 | * @path - path to usermode executable | 354 | * @path: path to usermode executable |
355 | * @argv - arg vector for process | 355 | * @argv: arg vector for process |
356 | * @envp - environment for process | 356 | * @envp: environment for process |
357 | * | 357 | * |
358 | * Returns either NULL on allocation failure, or a subprocess_info | 358 | * Returns either %NULL on allocation failure, or a subprocess_info |
359 | * structure. This should be passed to call_usermodehelper_exec to | 359 | * structure. This should be passed to call_usermodehelper_exec to |
360 | * exec the process and free the structure. | 360 | * exec the process and free the structure. |
361 | */ | 361 | */ |
diff --git a/kernel/power/disk.c b/kernel/power/disk.c index 324ac0188ce1..eb72255b5c86 100644 --- a/kernel/power/disk.c +++ b/kernel/power/disk.c | |||
@@ -216,6 +216,7 @@ int hibernation_platform_enter(void) | |||
216 | * sleep state after all | 216 | * sleep state after all |
217 | */ | 217 | */ |
218 | error = hibernation_ops->prepare(); | 218 | error = hibernation_ops->prepare(); |
219 | sysdev_shutdown(); | ||
219 | if (!error) | 220 | if (!error) |
220 | error = hibernation_ops->enter(); | 221 | error = hibernation_ops->enter(); |
221 | } else { | 222 | } else { |
diff --git a/kernel/sys.c b/kernel/sys.c index 08562f419768..14f8adcfffd9 100644 --- a/kernel/sys.c +++ b/kernel/sys.c | |||
@@ -804,6 +804,7 @@ static void kernel_restart_prepare(char *cmd) | |||
804 | blocking_notifier_call_chain(&reboot_notifier_list, SYS_RESTART, cmd); | 804 | blocking_notifier_call_chain(&reboot_notifier_list, SYS_RESTART, cmd); |
805 | system_state = SYSTEM_RESTART; | 805 | system_state = SYSTEM_RESTART; |
806 | device_shutdown(); | 806 | device_shutdown(); |
807 | sysdev_shutdown(); | ||
807 | } | 808 | } |
808 | 809 | ||
809 | /** | 810 | /** |
@@ -860,6 +861,7 @@ void kernel_shutdown_prepare(enum system_states state) | |||
860 | void kernel_halt(void) | 861 | void kernel_halt(void) |
861 | { | 862 | { |
862 | kernel_shutdown_prepare(SYSTEM_HALT); | 863 | kernel_shutdown_prepare(SYSTEM_HALT); |
864 | sysdev_shutdown(); | ||
863 | printk(KERN_EMERG "System halted.\n"); | 865 | printk(KERN_EMERG "System halted.\n"); |
864 | machine_halt(); | 866 | machine_halt(); |
865 | } | 867 | } |
@@ -876,6 +878,7 @@ void kernel_power_off(void) | |||
876 | kernel_shutdown_prepare(SYSTEM_POWER_OFF); | 878 | kernel_shutdown_prepare(SYSTEM_POWER_OFF); |
877 | if (pm_power_off_prepare) | 879 | if (pm_power_off_prepare) |
878 | pm_power_off_prepare(); | 880 | pm_power_off_prepare(); |
881 | sysdev_shutdown(); | ||
879 | printk(KERN_EMERG "Power down.\n"); | 882 | printk(KERN_EMERG "Power down.\n"); |
880 | machine_power_off(); | 883 | machine_power_off(); |
881 | } | 884 | } |