Properly replace late_initcall for software_resume.
commit9502309bf2025ca86e1229ed69cc3205c7a756c8
authorNigel Cunningham <nigel@suspend2.net>
Tue, 15 May 2007 10:55:34 +0000 (15 20:55 +1000)
committerNigel Cunningham <nigel@suspend2.net>
Tue, 15 May 2007 10:58:34 +0000 (15 20:58 +1000)
treea6bed0708c13df75c13bd0ac42a1c26518700c61
parent36931a9a5845580c8265cc236432cdb5875d7d3f
Properly replace late_initcall for software_resume.

The late initcall for software_resume has a problem. If you need to have
access to your storage set up in an initrd/ramfs, you'll get an attempt
at resuming (and the associated complaining) beforehand. With these
modifications, we can still resume without an initrd/ramfs, but can also
have the resume initiated from the initrd/ramfs without the fallback
triggering too.

Signed-off-by: Nigel Cunningham <nigel@suspend2.net>
include/linux/suspend.h
init/do_mounts.c
init/do_mounts_initrd.c
init/main.c
kernel/power/disk.c
kernel/power/snapshot.c
kernel/power/suspend.c
kernel/power/suspend2_builtin.c